summaryrefslogtreecommitdiffstats
path: root/src/widgets/desktop-widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/desktop-widget.cpp')
-rw-r--r--src/widgets/desktop-widget.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp
index 5bc367fe5..50c87a9a8 100644
--- a/src/widgets/desktop-widget.cpp
+++ b/src/widgets/desktop-widget.cpp
@@ -973,15 +973,10 @@ SPDesktopWidget::shutdown()
"If you close without saving, your changes will be discarded."),
doc->getName());
// fix for bug lp:168809
-#if GTK_CHECK_VERSION(2,22,0)
GtkWidget *ma = gtk_message_dialog_get_message_area(GTK_MESSAGE_DIALOG(dialog));
GList *ma_labels = gtk_container_get_children(GTK_CONTAINER(ma));
GtkWidget *label = GTK_WIDGET(g_list_first(ma_labels)->data);
gtk_widget_set_can_focus(label, FALSE);
-#elif !defined(GSEAL_ENABLE)
- GtkWidget *label = GTK_WIDGET(GTK_MESSAGE_DIALOG(dialog)->label);
- gtk_widget_set_can_focus(label, FALSE);
-#endif
GtkWidget *close_button;
close_button = gtk_button_new_with_mnemonic(_("Close _without saving"));
@@ -1037,15 +1032,10 @@ SPDesktopWidget::shutdown()
"Do you want to save this file as Inkscape SVG?"),
doc->getName() ? doc->getName() : "Unnamed");
// fix for bug lp:168809
-#if GTK_CHECK_VERSION(2,22,0)
GtkWidget *ma = gtk_message_dialog_get_message_area(GTK_MESSAGE_DIALOG(dialog));
GList *ma_labels = gtk_container_get_children(GTK_CONTAINER(ma));
GtkWidget *label = GTK_WIDGET(g_list_first(ma_labels)->data);
gtk_widget_set_can_focus(label, FALSE);
-#elif !defined(GSEAL_ENABLE)
- GtkWidget *label = GTK_WIDGET(GTK_MESSAGE_DIALOG(dialog)->label);
- gtk_widget_set_can_focus(label, FALSE);
-#endif
GtkWidget *close_button;
close_button = gtk_button_new_with_mnemonic(_("Close _without saving"));