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 anjuta_window_iconify_dockable_widget (AnjutaShell *shell, GtkWidget *widget, GError **error) { AnjutaWindow *win = NULL; GtkWidget *dock_item = NULL; /* Argumments assertions */ g_return_if_fail (ANJUTA_IS_WINDOW (shell)); g_return_if_fail (GTK_IS_WIDGET (widget)); win = ANJUTA_WINDOW (shell); g_return_if_fail (win->widgets != NULL); dock_item = g_object_get_data (G_OBJECT (widget), "dockitem"); g_return_if_fail (dock_item != NULL); /* Iconify the dockable item */ gdl_dock_item_iconify_item (GDL_DOCK_ITEM (dock_item)); }