From d933613594fa7e1af51ebaeb4d02c5d697d5dc6c Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 3 Aug 2016 17:55:09 +0200 Subject: 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 --- mate-session/gsm-logout-dialog.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'mate-session') 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); -- cgit v1.2.1