diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/idocalendarmenuitem.c | 8 | ||||
-rw-r--r-- | src/idoentrymenuitem.c | 8 | ||||
-rw-r--r-- | src/idoscalemenuitem.c | 4 |
3 files changed, 4 insertions, 16 deletions
diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c index 9ad68bb..fca4bb6 100644 --- a/src/idocalendarmenuitem.c +++ b/src/idocalendarmenuitem.c @@ -121,13 +121,7 @@ ido_calendar_menu_item_send_focus_change (GtkWidget *widget, g_object_ref (widget); if (in) - { - GTK_WIDGET_SET_FLAGS (widget, GTK_HAS_FOCUS); - } - else - { - GTK_WIDGET_UNSET_FLAGS (widget, GTK_HAS_FOCUS); - } + gtk_widget_grab_focus (widget); event->focus_change.type = GDK_FOCUS_CHANGE; event->focus_change.window = g_object_ref (widget->window); diff --git a/src/idoentrymenuitem.c b/src/idoentrymenuitem.c index 7227201..251d108 100644 --- a/src/idoentrymenuitem.c +++ b/src/idoentrymenuitem.c @@ -174,13 +174,7 @@ ido_entry_menu_item_send_focus_change (GtkWidget *widget, g_object_ref (widget); if (in) - { - GTK_WIDGET_SET_FLAGS (widget, GTK_HAS_FOCUS); - } - else - { - GTK_WIDGET_UNSET_FLAGS (widget, GTK_HAS_FOCUS); - } + gtk_widget_grab_focus (widget); event->focus_change.type = GDK_FOCUS_CHANGE; event->focus_change.window = g_object_ref (widget->window); diff --git a/src/idoscalemenuitem.c b/src/idoscalemenuitem.c index 247fb43..4ec4baa 100644 --- a/src/idoscalemenuitem.c +++ b/src/idoscalemenuitem.c @@ -468,12 +468,12 @@ ido_scale_menu_item_button_press_event (GtkWidget *menuitem, translate_event_coordinates (menuitem, event->x_root, &x); event->x_root = x; - GTK_OBJECT_FLAGS (scale) |= GTK_HAS_GRAB; + ubuntu_gtk_widget_set_has_grab (scale, TRUE); gtk_widget_event (scale, ((GdkEvent *)(void*)(event))); - GTK_OBJECT_FLAGS (scale) &= ~(GTK_HAS_GRAB); + ubuntu_gtk_widget_set_has_grab (scale, FALSE); if (!priv->grabbed) { |