~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to src/reboot.c

  • Committer: Michael Vogt
  • Date: 2006-07-27 14:25:33 UTC
  • Revision ID: michael.vogt@ubuntu.com-20060727142533-c660f90ac5c3dab3
* switch the code to use GtkIconTheme and install the icons 
  in a icon-theme friendly way

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
        xml = glade_xml_new (GLADEDIR"reboot-dialog.glade", NULL, NULL);
149
149
 
150
150
        widget = glade_xml_get_widget (xml, "image");
151
 
        gtk_image_set_from_file (GTK_IMAGE(widget), "/usr/share/pixmaps/reboot.png");
152
 
 
 
151
        GtkIconTheme* icon_theme = gtk_icon_theme_get_default();
 
152
        GdkPixbuf *pixbuf = gtk_icon_theme_load_icon (icon_theme, "un-reboot",
 
153
                                                      48, 0,NULL);
 
154
        gtk_image_set_from_pixbuf(GTK_IMAGE(widget), pixbuf);
153
155
        ta->user_data = gconf_client_get_default();
154
156
 
155
157
        g_signal_connect (G_OBJECT(ta->tray_icon),