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 690447 - Set printer dialog titles
Set printer dialog titles
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Printers
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: Marek Kašík
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-12-18 19:04 UTC by Allan Day
Modified: 2013-02-18 13:01 UTC
See Also:
GNOME target: ---
GNOME version: 3.5/3.6


Attachments
move dialog names to their title (42.79 KB, patch)
2013-02-11 12:45 UTC, Marek Kašík
committed Details | Review
screenshots of the change (124.03 KB, image/png)
2013-02-11 12:46 UTC, Marek Kašík
  Details

Description Allan Day 2012-12-18 19:04:23 UTC
Currently, the titles for the printer dialogs are included in the window body. This is incorrect - the title should be in the window titlebar, and should be set as a window property. Dialogs affected by this bug include:

 * add printer
 * printer jobs
 * printer options

There may be other printer dialogs that are also affected.
Comment 1 Marek Kašík 2013-02-08 12:27:59 UTC
The dialogs don't have a titlebars because they are dialogs which are transient to their parents. Do you want to make them regular windows?
I prefer the current titles.
Comment 2 Marek Kašík 2013-02-08 17:17:49 UTC
(In reply to comment #1)
> The dialogs don't have a titlebars because they are dialogs which are transient
> to their parents. Do you want to make them regular windows?
> I prefer the current titles.

I was wrong here. I don't see the titles because I use "Mist" theme which doesn't show titles for dialogs (maybe a bug...).

I'll look at this at Monday.
Comment 3 Marek Kašík 2013-02-11 12:45:46 UTC
Created attachment 235697 [details] [review]
move dialog names to their title

Attached patch moves the dialog names to their titles. It does so for jobs dialog, new printer dialog, options dialog and ppd selection dialog.ui.
Comment 4 Marek Kašík 2013-02-11 12:46:09 UTC
Created attachment 235698 [details]
screenshots of the change
Comment 5 Allan Day 2013-02-11 17:28:42 UTC
Looks much better!
Comment 6 Bastien Nocera 2013-02-15 14:58:04 UTC
Review of attachment 235697 [details] [review]:

::: panels/printers/new-printer-dialog.ui
@@ +134,3 @@
+                                <property name="secondary_icon_tooltip_text" translatable="yes">Search for network printers or filter result</property>
+                                <property name="secondary_icon_tooltip_markup" translatable="yes">Search for network printers or filter result</property>
+                                <property name="placeholder_text">Enter address of a printer or a text to filter results</property>

"The text that will be displayed in the GtkEntry when it is empty and unfocused."

This is a far too long placeholder-text.

::: panels/printers/pp-jobs-dialog.c
@@ +496,1 @@
   title = g_strdup_printf (_("%s Active Jobs"), printer_name);

As a separate bug, this is wrong for a lot of languages. See about using g_dngettext()
Comment 7 Marek Kašík 2013-02-15 15:17:30 UTC
(In reply to comment #6)
> Review of attachment 235697 [details] [review]:
> 
> ::: panels/printers/new-printer-dialog.ui
> @@ +134,3 @@
> +                                <property name="secondary_icon_tooltip_text"
> translatable="yes">Search for network printers or filter result</property>
> +                                <property name="secondary_icon_tooltip_markup"
> translatable="yes">Search for network printers or filter result</property>
> +                                <property name="placeholder_text">Enter
> address of a printer or a text to filter results</property>
> 
> "The text that will be displayed in the GtkEntry when it is empty and
> unfocused."
> 
> This is a far too long placeholder-text.

This part of the patch just moves those tags, it doesn't add them. We are discussing the text in https://bugzilla.gnome.org/show_bug.cgi?id=690366.


> ::: panels/printers/pp-jobs-dialog.c
> @@ +496,1 @@
>    title = g_strdup_printf (_("%s Active Jobs"), printer_name);
> 
> As a separate bug, this is wrong for a lot of languages. See about using
> g_dngettext()

I'll look at this.
Comment 8 Bastien Nocera 2013-02-15 16:30:11 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Review of attachment 235697 [details] [review] [details]:
> > 
> > ::: panels/printers/new-printer-dialog.ui
> > @@ +134,3 @@
> > +                                <property name="secondary_icon_tooltip_text"
> > translatable="yes">Search for network printers or filter result</property>
> > +                                <property name="secondary_icon_tooltip_markup"
> > translatable="yes">Search for network printers or filter result</property>
> > +                                <property name="placeholder_text">Enter
> > address of a printer or a text to filter results</property>
> > 
> > "The text that will be displayed in the GtkEntry when it is empty and
> > unfocused."
> > 
> > This is a far too long placeholder-text.
> 
> This part of the patch just moves those tags, it doesn't add them. We are
> discussing the text in https://bugzilla.gnome.org/show_bug.cgi?id=690366.

OK.

> > ::: panels/printers/pp-jobs-dialog.c
> > @@ +496,1 @@
> >    title = g_strdup_printf (_("%s Active Jobs"), printer_name);
> > 
> > As a separate bug, this is wrong for a lot of languages. See about using
> > g_dngettext()
> 
> I'll look at this.

File a separate bug about it please.
Comment 9 Marek Kašík 2013-02-15 17:37:16 UTC
Comment on attachment 235697 [details] [review]
move dialog names to their title

I've committed the patch.
Comment 10 Marek Kašík 2013-02-15 17:38:10 UTC
> > > ::: panels/printers/pp-jobs-dialog.c
> > > @@ +496,1 @@
> > >    title = g_strdup_printf (_("%s Active Jobs"), printer_name);
> > > 
> > > As a separate bug, this is wrong for a lot of languages. See about using
> > > g_dngettext()
> > 
> > I'll look at this.
> 
> File a separate bug about it please.

Ok, I will.


I'm closing this. Thank you for your help.

Marek
Comment 11 Marek Kašík 2013-02-18 12:36:00 UTC
(In reply to comment #8)
> > > ::: panels/printers/pp-jobs-dialog.c
> > > @@ +496,1 @@
> > >    title = g_strdup_printf (_("%s Active Jobs"), printer_name);
> > > 
> > > As a separate bug, this is wrong for a lot of languages. See about using
> > > g_dngettext()
> > 
> > I'll look at this.
> 
> File a separate bug about it please.

Looking at this, it seems correct to me. The "%s Active Jobs" expands to e.g. "NameOfMyPrinter Active Jobs". It is a title of dialog which shows list of active jobs. So it I think that using plural form is correct here.

(sorry for spamming in closed bug)
Comment 12 Bastien Nocera 2013-02-18 13:01:08 UTC
(In reply to comment #11)
> (In reply to comment #8)
> > > > ::: panels/printers/pp-jobs-dialog.c
> > > > @@ +496,1 @@
> > > >    title = g_strdup_printf (_("%s Active Jobs"), printer_name);
> > > > 
> > > > As a separate bug, this is wrong for a lot of languages. See about using
> > > > g_dngettext()
> > > 
> > > I'll look at this.
> > 
> > File a separate bug about it please.
> 
> Looking at this, it seems correct to me. The "%s Active Jobs" expands to e.g.
> "NameOfMyPrinter Active Jobs". It is a title of dialog which shows list of
> active jobs. So it I think that using plural form is correct here.

OK, I thought it might be used in a label instead.

> (sorry for spamming in closed bug)

It's the right place to do this in this case :)