Hiroyuki Ikezoe
ikezo****@users*****
Fri Sep 8 13:26:51 JST 2006
Index: kazehakase/src/actions/kz-history-action.c diff -u kazehakase/src/actions/kz-history-action.c:1.24 kazehakase/src/actions/kz-history-action.c:1.25 --- kazehakase/src/actions/kz-history-action.c:1.24 Fri Sep 8 13:07:48 2006 +++ kazehakase/src/actions/kz-history-action.c Fri Sep 8 13:26:51 2006 @@ -260,41 +260,6 @@ } -#if 0 -static gboolean -cb_menu_item_combo_button_press (GtkWidget *widget) -{ - /* don't propagate to parent */ - return TRUE; -} - - -static gboolean -cb_menu_item_combo_button_release (GtkWidget *widget) -{ - /* don't propagate to parent */ - return TRUE; -} - - -static gboolean -cb_menu_item_combo_enter (GtkWidget *widget, GdkEventCrossing *event) -{ - gtk_grab_add(GTK_BIN(widget)->child); - gtk_widget_grab_focus(GTK_BIN(widget)->child); - - return TRUE; -} - - -static gboolean -cb_menu_item_combo_leave (GtkWidget *widget, GdkEventCrossing *event) -{ - gtk_grab_remove(GTK_BIN(widget)->child); - - return TRUE; -} -#endif static gboolean cb_match_selected (GtkEntryCompletion *completion, @@ -428,19 +393,7 @@ gtk_widget_show(combo); gtk_container_add(GTK_CONTAINER(widget), combo); gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0); -#if 0 - g_signal_connect_after(widget, "button-press-event", - G_CALLBACK(cb_menu_item_combo_button_press), - NULL); - g_signal_connect_after(widget, "button-release-event", - G_CALLBACK(cb_menu_item_combo_button_release), - NULL); - - g_signal_connect(widget, "enter-notify-event", - G_CALLBACK(cb_menu_item_combo_enter), NULL); - g_signal_connect(widget, "leave-notify-event", - G_CALLBACK(cb_menu_item_combo_leave), NULL); -#endif + return widget; } @@ -473,7 +426,6 @@ g_return_if_fail(proxy); - combo = kz_history_action_get_combo_widget(KZ_HISTORY_ACTION(action), proxy); if (GTK_IS_COMBO_BOX(combo))