From 7d2c8d86113d973c0c2a6748d00cf162412c11f9 Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Sun, 22 Jan 2012 21:16:58 +0000 Subject: Fix missing header in units.cpp Fixed bugs: - https://launchpad.net/bugs/920154 (bzr r10919) --- src/widgets/desktop-widget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/widgets/desktop-widget.cpp') diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp index 5b07cddf5..2ca81a474 100644 --- a/src/widgets/desktop-widget.cpp +++ b/src/widgets/desktop-widget.cpp @@ -894,8 +894,11 @@ SPDesktopWidget::shutdown() "If you close without saving, your changes will be discarded."), doc->getName()); // fix for bug lp:168809 - gtk_widget_set_can_focus(GTK_WIDGET(GTK_MESSAGE_DIALOG(dialog)->label), FALSE); + //gtk_widget_set_can_focus(GTK_WIDGET(GTK_MESSAGE_DIALOG(dialog)->label), FALSE); + GtkWidget *message_area = gtk_message_dialog_get_message_area(GTK_MESSAGE_DIALOG(dialog)); + gtk_widget_set_can_focus(message_area, FALSE); + GtkWidget *close_button; close_button = gtk_button_new_with_mnemonic(_("Close _without saving")); gtk_widget_show(close_button); -- cgit v1.2.3