/* Emits a GtkButton::leave signal to the given GtkButton. */ int clip_GTK_BUTTONLEAVE(ClipMachine * ClipMachineMemory) { C_widget *cbtn = _fetch_cw_arg(ClipMachineMemory); CHECKCWID(cbtn, GTK_IS_BUTTON); gtk_button_leave(GTK_BUTTON(cbtn->widget)); return 0; err: return 1; }
static void gdl_dock_item_grip_iconify_clicked (GtkWidget *widget, GdlDockItemGrip *grip) { g_return_if_fail (grip->item != NULL); gdl_dock_item_iconify_item (grip->item); /* Workaround to unhighlight the iconify button. */ GTK_BUTTON (grip->_priv->iconify_button)->in_button = FALSE; gtk_button_leave (GTK_BUTTON (grip->_priv->iconify_button)); }
static void gtkui_page_defocus_tabs(void) { GList *list = NULL, *curr = NULL; GtkWidget *contents, *label; int pages = 0; /* make sure all the close buttons loose focus */ for(pages = gtk_notebook_get_n_pages(GTK_NOTEBOOK (notebook)); pages > 0; pages--) { contents = gtk_notebook_get_nth_page(GTK_NOTEBOOK (notebook), (pages - 1)); label = gtk_notebook_get_tab_label(GTK_NOTEBOOK (notebook), contents); list = gtk_container_get_children(GTK_CONTAINER (label)); for(curr = list; curr != NULL; curr = curr->next) if(GTK_IS_BUTTON (curr->data)) gtk_button_leave(GTK_BUTTON (curr->data)); } }
static gboolean gtk_button_leave_notify (GtkWidget *widget, GdkEventCrossing *event) { GtkButton *button; GtkWidget *event_widget; button = GTK_BUTTON (widget); event_widget = gtk_get_event_widget ((GdkEvent*) event); if ((event_widget == widget) && (event->detail != GDK_NOTIFY_INFERIOR)) { button->in_button = FALSE; gtk_button_leave (button); } return FALSE; }
static VALUE button_leave(VALUE self) { gtk_button_leave(_SELF(self)); return self; }