[monkey-bubble: 33/753] Ok, little improvement Elliot, let me know what do you think



commit 3565b7b01c11d31e77db8ab564f802a83ff54fc9
Author: Miguel de Icaza <miguel nuclecu unam mx>
Date:   Wed Dec 31 23:59:19 1997 +0000

    Ok, little improvement Elliot, let me know what do you think
    
    Wed Dec 31 18:05:36 1997  Miguel de Icaza  <miguel nuclecu unam mx>
    
    	* libgnomeui/gnome-app.c (gnome_app_set_toolbar,
    	gnome_app_set_menu): Bind the button_press_event to the handle
    	box, not the toolbar nor the menubar, this way you can click right
    	button on the little handle on the screen.

 libgnomeui/gnome-app.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgnomeui/gnome-app.c b/libgnomeui/gnome-app.c
index 7709c3b..eed2868 100644
--- a/libgnomeui/gnome-app.c
+++ b/libgnomeui/gnome-app.c
@@ -431,7 +431,7 @@ void gnome_app_set_menus     (GnomeApp *app,
 	gtk_widget_show(hb);
 	app->menubar = GTK_WIDGET(menubar);
 
-	gtk_signal_connect(GTK_OBJECT(app->menubar), "button_press_event",
+	gtk_signal_connect(GTK_OBJECT(hb), "button_press_event",
 			   GTK_SIGNAL_FUNC(gnome_app_rightclick_event), app);
 	gtk_widget_show(app->menubar);
 	gtk_container_add(GTK_CONTAINER(hb), app->menubar);
@@ -465,7 +465,7 @@ void gnome_app_set_toolbar   (GnomeApp *app,
 	hb = gtk_handle_box_new();
 	gtk_widget_show(hb);
 	app->toolbar = GTK_WIDGET(toolbar);
-	gtk_signal_connect(GTK_OBJECT(app->toolbar), "button_press_event",
+	gtk_signal_connect(GTK_OBJECT(hb), "button_press_event",
 			   GTK_SIGNAL_FUNC(gnome_app_rightclick_event), app);
 	gtk_widget_show(app->toolbar);
 	gtk_container_add(GTK_CONTAINER(hb), app->toolbar);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]