summaryrefslogtreecommitdiff
path: root/gui/gdmsetup.c
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@5z.com>2002-07-09 02:50:00 +0000
committerGeorge Lebl <jirka@src.gnome.org>2002-07-09 02:50:00 +0000
commit1747a04db0d98a53dd2bec91ec34e518a7038e7a (patch)
tree52be56a1faa0dc8f43cfba7ad08802fd655bacf3 /gui/gdmsetup.c
parent9348367b6b4f34fe39b41bceeb0a14811c34100f (diff)
downloadgdm-1747a04db0d98a53dd2bec91ec34e518a7038e7a.tar.gz
if available include <sys/sockio.h>. Should fix first part of #86679
Mon Jul 08 20:01:23 2002 George Lebl <jirka@5z.com> * configure.in, acconfig.h, daemon/misc.c, gui/gdmchooser.c: if available include <sys/sockio.h>. Should fix first part of #86679 * gui/Makefile.am: link gdmsetup and gdmflexiserver with -lXau, should fix second part of #86679 * gui/gdmwm.c: Fix #86620, don't set up the wm stuff if the substructureredirect selection fails on the root window. * daemon/slave.c: don't clear the env for chooser, greeter and config. I suppose it was fairly foolish to do so anyway. Should fix #87387 partly * configure.in, daemon/gdm.in, daemon/Makefile.am: rename gdm to gdm-binary and install a new script called gdm which calls gdm-binary. This way the standard env is read in and other good stuff can happen. Should fix #87387 completely * gui/gdmchooser.c, gui/gdmlogin.c: properly center windows * gui/gdmchooser.c: don't die on every minor problem, and fix querying the interfaces * gui/gdmchooser.c, gui/gdmsetup.c: fix crashes and the event fixup function * gui/gdmchooser.glade: fix signal connections so that we can actually select some host
Diffstat (limited to 'gui/gdmsetup.c')
-rw-r--r--gui/gdmsetup.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gui/gdmsetup.c b/gui/gdmsetup.c
index 7b8644d6..80cf3787 100644
--- a/gui/gdmsetup.c
+++ b/gui/gdmsetup.c
@@ -1905,11 +1905,17 @@ gdm_event (GSignalInvocationHint *ihint,
const GValue *param_values,
gpointer data)
{
+ GdkEvent *event;
+
/* HAAAAAAAAAAAAAAAAACK */
/* Since the user has not logged in yet and may have left/right
* mouse buttons switched, we just translate every right mouse click
* to a left mouse click */
- GdkEvent *event = g_value_get_pointer ((GValue *)param_values);
+ if (n_param_values != 2 ||
+ !G_VALUE_HOLDS (&param_values[1], GDK_TYPE_EVENT))
+ return FALSE;
+
+ event = g_value_get_boxed (&param_values[1]);
if ((event->type == GDK_BUTTON_PRESS ||
event->type == GDK_2BUTTON_PRESS ||
event->type == GDK_3BUTTON_PRESS ||
@@ -1955,6 +1961,9 @@ main (int argc, char *argv[])
gtk_rc_parse (gtkrc);
g_free (gtkrc);
+ /* evil, but oh well */
+ g_type_class_ref (GTK_TYPE_WIDGET);
+
/* also setup third button to work as first to work in reverse
* situations transparently */
sid = g_signal_lookup ("event",