Commit 17c50ced authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa

Initialize before using.

2000-01-18  Miguel de Icaza  <miguel@gnu.org>

	* libnautilus/gnome-icon-container.c (handle_icon_button_press):
	Initialize before using.
parent b0e9bb20
......@@ -2219,6 +2219,8 @@ handle_icon_button_press (GnomeIconContainer *container,
GnomeIconContainerPrivate *priv;
gdouble world_x, world_y;
priv = container->priv;
if (event->button == 3) {
/* FIXME this means you cannot drag with right click. Instead,
we should setup a timeout and emit this signal if the
......@@ -2236,8 +2238,6 @@ handle_icon_button_press (GnomeIconContainer *container,
if (event->button != 1)
return FALSE;
priv = container->priv;
if (event->state & GDK_CONTROL_MASK) {
toggle_icon (container, icon);
gtk_signal_emit (GTK_OBJECT (container),
......
......@@ -2219,6 +2219,8 @@ handle_icon_button_press (GnomeIconContainer *container,
GnomeIconContainerPrivate *priv;
gdouble world_x, world_y;
priv = container->priv;
if (event->button == 3) {
/* FIXME this means you cannot drag with right click. Instead,
we should setup a timeout and emit this signal if the
......@@ -2236,8 +2238,6 @@ handle_icon_button_press (GnomeIconContainer *container,
if (event->button != 1)
return FALSE;
priv = container->priv;
if (event->state & GDK_CONTROL_MASK) {
toggle_icon (container, icon);
gtk_signal_emit (GTK_OBJECT (container),
......
......@@ -2219,6 +2219,8 @@ handle_icon_button_press (GnomeIconContainer *container,
GnomeIconContainerPrivate *priv;
gdouble world_x, world_y;
priv = container->priv;
if (event->button == 3) {
/* FIXME this means you cannot drag with right click. Instead,
we should setup a timeout and emit this signal if the
......@@ -2236,8 +2238,6 @@ handle_icon_button_press (GnomeIconContainer *container,
if (event->button != 1)
return FALSE;
priv = container->priv;
if (event->state & GDK_CONTROL_MASK) {
toggle_icon (container, icon);
gtk_signal_emit (GTK_OBJECT (container),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment