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 705010 - drop GtkStock
drop GtkStock
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: general
3.10.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2013-07-27 23:51 UTC by Yosef Or Boczko
Modified: 2013-09-21 13:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
drop GtkStock (1.48 KB, patch)
2013-07-27 23:51 UTC, Yosef Or Boczko
reviewed Details | Review
drop GtkStock (1.52 KB, patch)
2013-07-31 23:16 UTC, Yosef Or Boczko
committed Details | Review

Description Yosef Or Boczko 2013-07-27 23:51:12 UTC
See patch.
Comment 1 Yosef Or Boczko 2013-07-27 23:51:36 UTC
Created attachment 250282 [details] [review]
drop GtkStock
Comment 2 Milan Crha 2013-07-31 14:01:56 UTC
Could you give some background for the change, like why it is needed (of course, I might miss it on _some_ mailing list or so, but it's still good to know the background for the change, before doing it out of nowhere.
Comment 3 Milan Crha 2013-07-31 14:02:52 UTC
Review of attachment 250282 [details] [review]:

::: modules/trust-prompt/certificate-viewer.c
@@ +573,3 @@
 		title, parent,
 		GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
+		_("_Close"), GTK_RESPONSE_CLOSE,

This adds a new translatable string into evolution-data-server, while it wasn't needed before.
Comment 5 Yosef Or Boczko 2013-07-31 14:06:20 UTC
(In reply to comment #3)
> Review of attachment 250282 [details] [review]:
> 
> ::: modules/trust-prompt/certificate-viewer.c
> @@ +573,3 @@
>          title, parent,
>          GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
> +        _("_Close"), GTK_RESPONSE_CLOSE,
> 
> This adds a new translatable string into evolution-data-server, while it wasn't
> needed before.

This adds a new translatable strings into each apps gnome.
Comment 6 Milan Crha 2013-07-31 15:02:50 UTC
(In reply to comment #5)
> This adds a new translatable strings into each apps gnome.

Yeah, and it's the reason why I feel sorry for their decision, because instead of having the most common strings in one base library, it'll be distributed to each application which uses the library. See how much work it adds to translators.
Comment 7 Milan Crha 2013-07-31 15:06:02 UTC
Review of attachment 250282 [details] [review]:

Disregard the previous review comment about translation, and just fix the icon name. Then feel free to commit to master. Thanks.

::: modules/trust-prompt/trust-prompt-gtk.c
@@ +187,3 @@
 	gtk_container_add (GTK_CONTAINER (widget), GTK_WIDGET (grid));
 
+	widget = gtk_image_new_from_icon_name ("dialog-warning-symbolic", GTK_ICON_SIZE_DIALOG);

change the icon name to "dialog-warning", please. It's the name listed at
https://docs.google.com/spreadsheet/pub?key=0AsPAM3pPwxagdGF4THNMMUpjUW5xMXZfdUNzMXhEa2c&output=html
Comment 8 Yosef Or Boczko 2013-07-31 15:08:49 UTC
(In reply to comment #7)
> Review of attachment 250282 [details] [review]:
> 
> Disregard the previous review comment about translation, and just fix the icon
> name. Then feel free to commit to master. Thanks.
> 
> ::: modules/trust-prompt/trust-prompt-gtk.c
> @@ +187,3 @@
>      gtk_container_add (GTK_CONTAINER (widget), GTK_WIDGET (grid));
> 
> +    widget = gtk_image_new_from_icon_name ("dialog-warning-symbolic",
> GTK_ICON_SIZE_DIALOG);
> 
> change the icon name to "dialog-warning", please. It's the name listed at
> https://docs.google.com/spreadsheet/pub?key=0AsPAM3pPwxagdGF4THNMMUpjUW5xMXZfdUNzMXhEa2c&output=html

not...
the postfix of each the symbolic icons is '-symbolic'.

see:
https://git.gnome.org/browse/gnome-icon-theme-symbolic/tree/gnome/scalable/status
and https://git.gnome.org/browse/gnome-icon-theme-symbolic/tree/gnome/scalable/status/dialog-warning-symbolic.svg
Comment 9 Milan Crha 2013-07-31 16:14:56 UTC
Well, the table I quoted says something else. The gtk_image_new_from_icon_name() defines both the name, and the requested size. It's the GtkIconTheme work to pick the right icon, and I do not like to see a hard-coding of something what is not in the migration documentation.

Furthermore, using the icon from gnome-icon-theme-symbolic would require to add dependency on it in evolution-data-server, which feels wrong as well. Please use _the standard_ icon name.
Comment 10 Yosef Or Boczko 2013-07-31 16:22:56 UTC
(In reply to comment #9)
> Well, the table I quoted says something else. The
> gtk_image_new_from_icon_name() defines both the name, and the requested size.
> It's the GtkIconTheme work to pick the right icon, and I do not like to see a
> hard-coding of something what is not in the migration documentation.
> 
> Furthermore, using the icon from gnome-icon-theme-symbolic would require to add
> dependency on it in evolution-data-server, which feels wrong as well. Please
> use _the standard_ icon name.

"dialog-warning" is from gnome-icon-theme,
"dialog-warning-symbolic" is from gnome-icon-theme-symbolic.

in the new design of gnome, need "dialog-warning-symbolic".

see:
https://bugzilla.gnome.org/show_bug.cgi?id=704297
and the commit:
https://git.gnome.org/browse/gedit/commit/?id=ee6b232c37d469b3e857c8d2093d88652475c7c7
Comment 11 Milan Crha 2013-07-31 16:49:30 UTC
(In reply to comment #10)
> "dialog-warning" is from gnome-icon-theme,
> "dialog-warning-symbolic" is from gnome-icon-theme-symbolic.

yes, I understood that, which might be seen by the "added dependency" note in comment #9.

> https://bugzilla.gnome.org/show_bug.cgi?id=704297

I do not see anything wrong on the icon being used there. If they want to use a different icon, then they should do so in gnome-icon-theme transparently, not forcing everyone changing to their needs, and requesting two packages instead of one. This way of work and decision making seems rather suboptimal to me. I know it's not your fault, I only express my feelings.

In any case, your patch is incomplete, with respect of dependency definition, but I'd still prefer to use the standard icon name, not the symbolic one.
Comment 12 Yosef Or Boczko 2013-07-31 23:16:15 UTC
Created attachment 250564 [details] [review]
drop GtkStock
Comment 13 Milan Crha 2013-08-01 04:55:39 UTC
Review of attachment 250564 [details] [review]:

Thanks. Please commit to master.
Comment 14 Yosef Or Boczko 2013-08-01 07:58:22 UTC
Review of attachment 250564 [details] [review]:

pushed as 230c2e4cb4aa8ce086eaf6b0b8011d7cf4aa69f0 - drop GtkStock