aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-02-11 11:11:37 -0600
committerTed Gould <ted@gould.cx>2011-02-11 11:11:37 -0600
commit633567c4d8388c37457be6eb9020efadda8f8507 (patch)
treecf6c6d6197201ac786b53f3db2c2655419991227 /src
parent259beb1229b4b4939ec966688ec04a38a0746110 (diff)
parenta5e8b16aa7c16b50c52b4fa86f0a0dffcf28f729 (diff)
downloadayatana-indicator-session-633567c4d8388c37457be6eb9020efadda8f8507.tar.gz
ayatana-indicator-session-633567c4d8388c37457be6eb9020efadda8f8507.tar.bz2
ayatana-indicator-session-633567c4d8388c37457be6eb9020efadda8f8507.zip
Import upstream version 0.2.13
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in5
-rw-r--r--src/dialog.c15
2 files changed, 16 insertions, 4 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index b28fbce..3dd0627 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -40,10 +40,7 @@ libexec_PROGRAMS = indicator-session-service$(EXEEXT) \
subdir = src
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
- $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
- $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
- $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
diff --git a/src/dialog.c b/src/dialog.c
index 51b1682..9633224 100644
--- a/src/dialog.c
+++ b/src/dialog.c
@@ -226,5 +226,20 @@ logout_dialog_new (LogoutDialogType type)
gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);
+ /* The following is a workaround to fix an issue in GtkMessageDialog
+ in which the user can tab through the text in addition to
+ the buttons. */
+ GtkWidget *message_area = gtk_message_dialog_get_message_area(GTK_MESSAGE_DIALOG(dialog));
+ GList *children = gtk_container_get_children(GTK_CONTAINER(message_area));
+ GList *l;
+
+ for (l = children; l != NULL; l = g_list_next (l))
+ {
+ GtkWidget *child = l->data;
+ gtk_widget_set_can_focus(child, FALSE);
+ }
+
+ g_list_free (children);
+
return dialog;
}