summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-08-03 17:55:09 +0200
committerraveit65 <[email protected]>2016-08-03 17:55:09 +0200
commitd933613594fa7e1af51ebaeb4d02c5d697d5dc6c (patch)
tree72e2442d1378654f29a0b3a9eb349680ac245efb
parentacbaaaa13be21e429aa1d6ed529081f16d680ed9 (diff)
downloadmate-session-manager-d933613594fa7e1af51ebaeb4d02c5d697d5dc6c.tar.bz2
mate-session-manager-d933613594fa7e1af51ebaeb4d02c5d697d5dc6c.tar.xz
Fix Gtk-CRITICAL error caused by deprecated code
It removes the code related to the old dialog icon which is not displayed anymore. The Gtk-CRITICAL error was caused by gtk_message_dialog_get_image returning NULL as it is now deprecated in GTK 3. taken from: https://github.com/linuxmint/cinnamon-session/pull/71
-rw-r--r--mate-session/gsm-logout-dialog.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/mate-session/gsm-logout-dialog.c b/mate-session/gsm-logout-dialog.c
index 06cecd0..9eb9366 100644
--- a/mate-session/gsm-logout-dialog.c
+++ b/mate-session/gsm-logout-dialog.c
@@ -441,7 +441,6 @@ gsm_get_dialog (GsmDialogLogoutType type,
guint32 activate_time)
{
GsmLogoutDialog *logout_dialog;
- GtkWidget *dialog_image;
GtkWidget *hbox;
const char *primary_text;
const char *icon_name;
@@ -521,8 +520,6 @@ gsm_get_dialog (GsmDialogLogoutType type,
g_assert_not_reached ();
}
- dialog_image = gtk_message_dialog_get_image (GTK_MESSAGE_DIALOG (logout_dialog));
-
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
logout_dialog->priv->progressbar = gtk_progress_bar_new ();
gtk_progress_bar_set_show_text (GTK_PROGRESS_BAR (logout_dialog->priv->progressbar), TRUE);
@@ -533,8 +530,6 @@ gsm_get_dialog (GsmDialogLogoutType type,
gtk_widget_show_all (hbox);
gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (logout_dialog))), hbox);
- gtk_image_set_from_icon_name (GTK_IMAGE (dialog_image),
- icon_name, GTK_ICON_SIZE_DIALOG);
gtk_window_set_icon_name (GTK_WINDOW (logout_dialog), icon_name);
gtk_window_set_position (GTK_WINDOW (logout_dialog), GTK_WIN_POS_CENTER_ALWAYS);
gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (logout_dialog), primary_text);