/** * gimp_font_select_widget_close: * @widget: A font select widget. * * Closes the popup window associated with @widget. */ void gimp_font_select_widget_close (GtkWidget *widget) { g_return_if_fail (widget != NULL); gimp_select_button_close_popup (GIMP_SELECT_BUTTON (widget)); }
static void gimp_select_button_destroy (GtkObject *object) { gimp_select_button_close_popup (GIMP_SELECT_BUTTON (object)); GTK_OBJECT_CLASS (gimp_select_button_parent_class)->destroy (object); }
static void gimp_select_button_dispose (GObject *object) { gimp_select_button_close_popup (GIMP_SELECT_BUTTON (object)); G_OBJECT_CLASS (gimp_select_button_parent_class)->dispose (object); }
static void script_fu_interface_quit (SFScript *script) { gint i; g_return_if_fail (script != NULL); g_return_if_fail (sf_interface != NULL); g_free (sf_interface->title); for (i = 0; i < script->n_args; i++) switch (script->args[i].type) { case SF_FONT: case SF_PALETTE: case SF_PATTERN: case SF_GRADIENT: case SF_BRUSH: gimp_select_button_close_popup (GIMP_SELECT_BUTTON (sf_interface->widgets[i])); break; default: break; } g_free (sf_interface->widgets); g_free (sf_interface->last_command); g_slice_free (SFInterface, sf_interface); sf_interface = NULL; /* We do not call gtk_main_quit() earlier to reduce the possibility * that script_fu_script_proc() is called from gimp_extension_process() * while we are not finished with the current script. This sucks! */ gtk_main_quit (); }