network: unfuzzy symbolic buttons and make them square

Use the 'image-button' style class to make symbolic buttons square
(as supported by latest Adwaita), and make sure to use the correct icon
size for all symbolics to avoid fuzzyness.

https://bugzilla.gnome.org/show_bug.cgi?id=693357
This commit is contained in:
Cosimo Cecchi 2013-02-07 16:23:54 -05:00
parent 2acd6a5303
commit 0969b36a65
6 changed files with 16 additions and 0 deletions

View file

@ -334,6 +334,7 @@ add_row (NetDeviceEthernet *device, NMConnection *connection)
image = gtk_image_new_from_icon_name ("emblem-system-symbolic", GTK_ICON_SIZE_MENU);
gtk_widget_show (image);
widget = gtk_button_new ();
gtk_style_context_add_class (gtk_widget_get_style_context (widget), "image-button");
gtk_widget_set_margin_left (widget, 12);
gtk_widget_set_margin_right (widget, 12);
gtk_widget_set_margin_top (widget, 12);