diff options
author | Ted Gould <ted@gould.cx> | 2010-03-03 14:16:56 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-03 14:16:56 -0600 |
commit | 84c4324d547a81969e0de563732eb923c83e7ea6 (patch) | |
tree | ad131b3141c6e8e1afe97b9838c8aa5bdc51f85b /src/gtk-dialog/dialog.c | |
parent | 25a24b5af992231732e58763786d7fc82914da8e (diff) | |
download | ayatana-indicator-session-84c4324d547a81969e0de563732eb923c83e7ea6.tar.gz ayatana-indicator-session-84c4324d547a81969e0de563732eb923c83e7ea6.tar.bz2 ayatana-indicator-session-84c4324d547a81969e0de563732eb923c83e7ea6.zip |
Putting the image in and cleaning up the props
Diffstat (limited to 'src/gtk-dialog/dialog.c')
-rw-r--r-- | src/gtk-dialog/dialog.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gtk-dialog/dialog.c b/src/gtk-dialog/dialog.c index 9dcc194..96ebf21 100644 --- a/src/gtk-dialog/dialog.c +++ b/src/gtk-dialog/dialog.c @@ -96,6 +96,9 @@ logout_dialog_finalize (GObject *object) LogoutDialog * logout_dialog_new (LogoutDialogType type) { + GtkWidget * image = gtk_image_new_from_icon_name(icon_strings[type], GTK_ICON_SIZE_DIALOG); + gtk_widget_show(image); + LogoutDialog * dialog = LOGOUT_DIALOG(g_object_new(LOGOUT_DIALOG_TYPE, /* Window */ "icon-name", icon_strings[type], @@ -103,11 +106,10 @@ logout_dialog_new (LogoutDialogType type) "resizable", FALSE, "title", _(title_strings[type]), "window-position", GTK_WIN_POS_CENTER_ALWAYS, - /* Dialog */ - "has-separator", FALSE, /* Message Dialog */ - "message-type", GTK_MESSAGE_OTHER, "buttons", GTK_BUTTONS_NONE, + "image", image, + "message-type", GTK_MESSAGE_OTHER, "text", _(body_strings[type]), NULL)); |