After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 722119 - Support for updated dialog style
Support for updated dialog style
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on: 720059 722092
Blocks:
 
 
Reported: 2014-01-13 18:05 UTC by William Jon McCann
Modified: 2014-04-12 09:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use new prompt style (4.06 KB, patch)
2014-01-13 18:05 UTC, William Jon McCann
none Details | Review
Use header bar on file chooser (906 bytes, patch)
2014-01-13 18:05 UTC, William Jon McCann
none Details | Review
Use header bar for document stats (4.52 KB, patch)
2014-01-13 18:05 UTC, William Jon McCann
none Details | Review
Use header bar for preferences dialog (904 bytes, patch)
2014-01-13 18:05 UTC, William Jon McCann
none Details | Review
Use header bar in highlight mode dialog (5.95 KB, patch)
2014-01-13 18:06 UTC, William Jon McCann
none Details | Review
Use header bar in encoding dialog (7.42 KB, patch)
2014-01-13 18:06 UTC, William Jon McCann
needs-work Details | Review

Description William Jon McCann 2014-01-13 18:05:48 UTC
Here are some patches to support the new gtk dialog style once it
lands.

https://bugzilla.gnome.org/show_bug.cgi?id=720059
Comment 1 William Jon McCann 2014-01-13 18:05:50 UTC
Created attachment 266182 [details] [review]
Use new prompt style
Comment 2 William Jon McCann 2014-01-13 18:05:53 UTC
Created attachment 266183 [details] [review]
Use header bar on file chooser
Comment 3 William Jon McCann 2014-01-13 18:05:57 UTC
Created attachment 266184 [details] [review]
Use header bar for document stats
Comment 4 William Jon McCann 2014-01-13 18:05:59 UTC
Created attachment 266185 [details] [review]
Use header bar for preferences dialog
Comment 5 William Jon McCann 2014-01-13 18:06:02 UTC
Created attachment 266186 [details] [review]
Use header bar in highlight mode dialog
Comment 6 William Jon McCann 2014-01-13 18:06:05 UTC
Created attachment 266187 [details] [review]
Use header bar in encoding dialog
Comment 7 Ignacio Casal Quinteiro (nacho) 2014-01-13 18:11:58 UTC
Review of attachment 266187 [details] [review]:

See comment

::: gedit/gedit-encodings-dialog.c
@@ +407,3 @@
 {
+	return GTK_WIDGET (g_object_new (GEDIT_TYPE_ENCODINGS_DIALOG,
+                                         "use-header-bar", TRUE,

fix indentation vs alignment
Comment 8 Yosef Or Boczko 2014-01-14 10:08:17 UTC
Review of attachment 266187 [details] [review]:

::: gedit/gedit-encodings-dialog.ui
@@ +48,3 @@
             <property name="is_focus">False</property>
+            <property name="receives_default">True</property>
+            <property name="use_stock">True</property>

Please, set the valign property as center, and also
add the "text-button" style here.
Btw, why set use_stock, is deprecated.

@@ +66,3 @@
+            <property name="receives_default">True</property>
+            <property name="use_stock">True</property>
+            <property name="can_default">True</property>

The same above.
Comment 9 Ignacio Casal Quinteiro (nacho) 2014-01-14 10:09:54 UTC
I'd also like a first patch removing the stocks and then do the actual thing, so we can already push the stocks until we make a decision about the headerbars.
Comment 10 Yosef Or Boczko 2014-01-14 10:09:57 UTC
Review of attachment 266186 [details] [review]:

::: gedit/gedit-highlight-mode-dialog.ui
@@ +36,3 @@
             <property name="is_focus">False</property>
+            <property name="receives_default">True</property>
+            <property name="use_stock">True</property>

Please, set the valign property as center, and also
add the "text-button" style here.
Btw, why set use_stock, is deprecated.

@@ +54,3 @@
+            <property name="receives_default">True</property>
+            <property name="use_stock">True</property>
+            <property name="can_default">True</property>

The same above.
Comment 11 Paolo Borelli 2014-02-14 11:49:53 UTC
I want to tackle this before the UI freeze, but I am a little uncertain about some of the issues, so I'll try to make a list and hopefully Jon can shed some light on some of them


1) new prompt style: from what I understood this is beeing punted to 3.14 when there is more time to work out the style of buttons etc

2) file chooser: is the patch still relevant now that gtk picks it up from xsettings? I would really prefer not to have to have conditional win32/osx/gnome code for this

3) document stats: already committed and further tweaked the dialog

4) Prefs dialog: here I really like the idea of using the titlebar since we just need to dismiss the dialog and all the changes are instant apply. There are however two issues with the patch:
  a) do we really want a [Close] button there? I would have simply expected the normal X button
  b) what about the help button? I think it looks fairly bad in the headerbar, but on the other hand the prefs dialog seems one of the places where direct access to contextual documentation is useful

5) Highlight mode: hopefully will move to a popover for this

6) encoding dialog: I guess I'll wait for the filechooser since having one dialog in a way and one in the other is confusing


With regard to the implementation:
1) stock items have already been removed in a separate patch
2) it is not clear to me if Yosef's suggestion still apply or now they are fixed in gtk
Comment 12 Paolo Borelli 2014-02-16 22:22:37 UTC
So this is all done now except the encoding stuff which needs a more radical redesign.


So current open issues are:

1) The prompt patch has been committed, but looks fairly broken now. We need to check the adwaita side gets actually done, or I would prefer to revert

2) We enabled use-header-bar unconditionally, we may need to get this from the xsetting instead to better integrate some dialogs on other platforms

3) the encoding dialog is lame, needs rethinking
Comment 13 Paolo Borelli 2014-04-12 09:31:38 UTC
I am closing this for now. 1 and 2 in the last comment seem ok for now, I am sure we'll get bugreports if they become a problem.

I am not opening a separate report for the encodings stuff, because we know it is one of the things needs another UI iteration along with many others, but if you want to file one so that you can track the progress, feel free to do so.


Thanks for the patches!