kov changed libgksu/trunk/ChangeLog,
libgksu/trunk/libgksuui/gksuui-dialog.c
Gustavo Noronha
kov at costa.debian.org
Sun Oct 15 03:34:03 UTC 2006
Mensagem de log:
make sure the window always has focus, working around the problem
with the right click giving focus to underlying windows
-----
Modified: libgksu/trunk/ChangeLog
===================================================================
--- libgksu/trunk/ChangeLog 2006-10-15 02:53:37 UTC (rev 742)
+++ libgksu/trunk/ChangeLog 2006-10-15 03:34:03 UTC (rev 743)
@@ -1,3 +1,9 @@
+2006-10-15 Gustavo Noronha Silva <kov at debian.org>
+
+ * libgksuui/gksuui-dialog.c:
+ - try to always have focus, by traping the focus-out-event;
+ should address Debian bug #391804
+
2006-10-08 Gustavo Noronha Silva <kov at debian.org>
* Release 2.0.1
Modified: libgksu/trunk/libgksuui/gksuui-dialog.c
===================================================================
--- libgksu/trunk/libgksuui/gksuui-dialog.c 2006-10-15 02:53:37 UTC (rev 742)
+++ libgksu/trunk/libgksuui/gksuui-dialog.c 2006-10-15 03:34:03 UTC (rev 743)
@@ -251,6 +251,13 @@
g_object_unref (gconf_client);
}
+static gboolean
+focus_out_cb (GtkWidget *widget, GdkEventFocus *event, gpointer user_data)
+{
+ gtk_window_present (GTK_WINDOW(widget));
+ return TRUE;
+}
+
static void
gksuui_dialog_init (GksuuiDialog *gksuui_dialog)
{
@@ -269,6 +276,10 @@
/* dialog window */
dialog = GTK_DIALOG(gksuui_dialog);
+ /* make sure that our window will always have the focus */
+ g_signal_connect (G_OBJECT(dialog), "focus-out-event",
+ G_CALLBACK(focus_out_cb), NULL);
+
gksuui_dialog->main_vbox = dialog->vbox;
gtk_window_set_title (GTK_WINDOW(gksuui_dialog), "");
More information about the gksu-commits
mailing list