static void mateconf_bookmarks_dialog_destroy (GtkObject *object) { MateConfClient *client; MateConfBookmarksDialog *dialog; client = mateconf_client_get_default (); dialog = MATECONF_BOOKMARKS_DIALOG (object); if (dialog->notify_id != 0) { mateconf_client_notify_remove (client, dialog->notify_id); mateconf_client_remove_dir (client, BOOKMARKS_KEY, NULL); dialog->notify_id = 0; } g_object_unref (client); if (GTK_OBJECT_CLASS (mateconf_bookmarks_dialog_parent_class)->destroy) { (* GTK_OBJECT_CLASS (mateconf_bookmarks_dialog_parent_class)->destroy) (object); } }
static void alleyoop_destroy (GtkObject *obj) { Alleyoop *grind = (Alleyoop *) obj; if (grind->prefs) { gtk_widget_destroy (grind->prefs); grind->prefs = NULL; } GTK_OBJECT_CLASS (parent_class)->destroy (obj); }
static void gtkam_list_destroy (GtkObject *object) { GtkamList *list = GTKAM_LIST (object); if (list->priv->factory) { g_object_unref (G_OBJECT (list->priv->factory)); list->priv->factory = NULL; } GTK_OBJECT_CLASS (parent_class)->destroy (object); }
static void gwy_graph_data_destroy(GtkObject *object) { GwyGraphData *graph_data; graph_data = GWY_GRAPH_DATA(object); gwy_graph_data_set_model(graph_data, NULL); gwy_object_unref(graph_data->store); GTK_OBJECT_CLASS(gwy_graph_data_parent_class)->destroy(object); }
/* Destrukce objektu */ static void gtk_ev_destroy(GtkObject *object) { GtkEv *ev; GList *p; /* Test platnosti parametru */ g_return_if_fail(GTK_IS_EV(object)); ev = GTK_EV(object); for(p = ev->list; p; p = p->next) g_strfreev((gchar **) p->data); g_list_free(ev->list); ev->list = ev->list_end = NULL; ev->list_len = 0; /* Volání metody pøedka (chaining) */ if(GTK_OBJECT_CLASS(parent_class)->destroy) GTK_OBJECT_CLASS(parent_class)->destroy(object); }
static void sunone_invitation_list_destroy (GtkObject *object) { SunOneInvitationList *list = SUNONE_INVITATION_LIST (object); SunOneInvitationListPrivate *priv = list->priv; g_return_if_fail (IS_SUNONE_INVITATION_LIST (list)); if (priv) { if (priv->client) { int pos = gtk_paned_get_position (GTK_PANED (priv->pane)); gconf_client_set_int (priv->client, "/apps/evolution/evolution-jescs/invitationList/panePosition", pos, NULL); g_object_unref (G_OBJECT (priv->client)); priv->client = NULL; } if (priv->model) { /* Don't listen to model updates any more */ g_object_unref (G_OBJECT (priv->model)); priv->model = NULL; } if (priv->treeview) { priv->treeview = NULL; } #if USE_ITIP_VIEW if (priv->control) { g_object_unref (priv->control); } #endif g_free (priv); list->priv = NULL; } if ( GTK_OBJECT_CLASS (parent_class)->destroy) (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); }
static void gwy_vector_layer_class_init(GwyVectorLayerClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS(klass); GtkObjectClass *object_class = GTK_OBJECT_CLASS(klass); GwyDataViewLayerClass *layer_class = GWY_DATA_VIEW_LAYER_CLASS(klass); gwy_debug(" "); parent_class = g_type_class_peek_parent(klass); gobject_class->finalize = gwy_vector_layer_finalize; gobject_class->set_property = gwy_vector_layer_set_property; gobject_class->get_property = gwy_vector_layer_get_property; layer_class->plugged = gwy_vector_layer_plugged; layer_class->unplugged = gwy_vector_layer_unplugged; layer_class->wants_repaint = NULL; /* always wants */ layer_class->updated = gwy_vector_layer_real_updated; klass->draw = NULL; klass->button_press = NULL; klass->button_release = NULL; klass->motion_notify = NULL; klass->key_press = NULL; klass->key_release = NULL; klass->selection_finished = NULL; klass->get_selection = NULL; klass->set_selection = NULL; klass->unselect = NULL; vector_layer_signals[SELECTION_FINISHED] = g_signal_new("selection_finished", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET(GwyVectorLayerClass, selection_finished), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); g_object_class_install_property( gobject_class, PROP_UPDATE_POLICY, g_param_spec_enum("update_policy", "Update Policy", "When value change causes signal emission", GTK_TYPE_UPDATE_TYPE, GTK_UPDATE_CONTINUOUS, G_PARAM_READABLE | G_PARAM_WRITABLE)); }
static void gwy_color_axis_destroy(GtkObject *object) { GwyColorAxis *axis; gwy_debug(""); axis = (GwyColorAxis*)object; g_signal_handlers_disconnect_matched(axis->gradient, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, axis); GTK_OBJECT_CLASS(parent_class)->destroy(object); }
static void gtk_hex_entry_finalize (GtkObject *object) { g_return_if_fail (object != NULL); g_return_if_fail (GTK_IS_HEX_ENTRY (object)); if (GTK_HEX_ENTRY (object)->pixmap) gdk_pixmap_unref (GTK_HEX_ENTRY (object)->pixmap); gdk_font_unref (GTK_HEX_ENTRY (object)->font); GTK_OBJECT_CLASS (parent_class)->finalize (object); }
static void gtk_expander_destroy (GtkObject *object) { GtkExpanderPrivate *priv = GTK_EXPANDER (object)->priv; if (priv->animation_timeout) { g_source_remove (priv->animation_timeout); priv->animation_timeout = 0; } GTK_OBJECT_CLASS (gtk_expander_parent_class)->destroy (object); }
static void emmb_destroy (GtkObject *gtk_object) { EMFolderView *emfv = EM_FOLDER_VIEW (gtk_object); if (emfv->list) { gtk_widget_destroy (GTK_WIDGET (emfv->list)); emfv->list = NULL; } /* Chain up to parent's destroy() method. */ GTK_OBJECT_CLASS (parent_class)->destroy (gtk_object); }
static void sp_gradient_image_destroy(GtkObject *object) #endif { SPGradientImage *image = SP_GRADIENT_IMAGE (object); if (image->gradient) { image->release_connection.disconnect(); image->modified_connection.disconnect(); image->gradient = NULL; } image->release_connection.~connection(); image->modified_connection.~connection(); #if GTK_CHECK_VERSION(3,0,0) if (parent_class->destroy) (* (parent_class)->destroy) (object); #else if ((GTK_OBJECT_CLASS(parent_class))->destroy) (* (GTK_OBJECT_CLASS(parent_class))->destroy) (object); #endif }
static void gwy_layer_basic_destroy(GtkObject *object) { GwyLayerBasic *layer; layer = GWY_LAYER_BASIC(object); if (layer->gradient) { gwy_resource_release(GWY_RESOURCE(layer->gradient)); layer->gradient = NULL; } GTK_OBJECT_CLASS(gwy_layer_basic_parent_class)->destroy(object); }
static void flowwidgetgtk_destroy( GtkObject *object) { FlowWidgetGtk *flow = (FlowWidgetGtk *)object; if ( !flow->destroyed) { flow->destroyed = 1; if ( flow->scroll_timerid) g_source_remove( flow->scroll_timerid); if ( !flow->is_navigator) delete (FlowDrawGtk *)flow->draw_ctx; } GTK_OBJECT_CLASS( flowwidgetgtk_parent_class)->destroy( object); }
static void _gwy_app_file_chooser_class_init(GwyAppFileChooserClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS(klass); GtkObjectClass *object_class = GTK_OBJECT_CLASS(klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass); gobject_class->finalize = gwy_app_file_chooser_finalize; object_class->destroy = gwy_app_file_chooser_destroy; widget_class->hide = gwy_app_file_chooser_hide; }
static void growwidgetgtk_class_init( GrowWidgetGtkClass *klass) { GtkWidgetClass *widget_class; GtkObjectClass *object_class; widget_class = GTK_WIDGET_CLASS( klass); object_class = GTK_OBJECT_CLASS(klass); widget_class->realize = growwidgetgtk_realize; widget_class->expose_event = growwidgetgtk_expose; widget_class->event = growwidgetgtk_event; widget_class->grab_focus = growwidgetgtk_grab_focus; object_class->destroy = growwidgetgtk_destroy; }
static void gitg_window_class_init(GitgWindowClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GtkObjectClass *gtkobject_class = GTK_OBJECT_CLASS(klass); parent_class = g_type_class_peek_parent(klass); object_class->finalize = gitg_window_finalize; gtkobject_class->destroy = gitg_window_destroy; g_type_class_add_private(object_class, sizeof(GitgWindowPrivate)); }
static void gimp_message_box_destroy (GtkObject *object) { GimpMessageBox *box = GIMP_MESSAGE_BOX (object); if (box->image) { gtk_widget_unparent (box->image); box->image = NULL; } GTK_OBJECT_CLASS (parent_class)->destroy (object); }
static void gtk_button_destroy (GtkObject *object) { GtkButton *button = GTK_BUTTON (object); if (button->label_text) { g_free (button->label_text); button->label_text = NULL; } (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); }
static void gtk_color_combo_destroy (GtkObject * color_combo) { gint i,j; GtkColorCombo *combo; combo=GTK_COLOR_COMBO(color_combo); if(combo && combo->button) /* patched by Mario Motta <*****@*****.**> */ for(i=0; i<combo->nrows; i++) for(j=0; j<combo->ncols; j++) if(combo->button[i][j]) gtk_widget_destroy(combo->button[i][j]); if(combo->color_name) g_free(combo->color_name); if(GTK_COLOR_COMBO(color_combo)->table) gtk_widget_destroy (GTK_COLOR_COMBO(color_combo)->table); if (GTK_OBJECT_CLASS (parent_class)->destroy) (*GTK_OBJECT_CLASS (parent_class)->destroy) (color_combo); }
static void cvImageWidget_destroy (GtkObject *object) #endif //GTK_VERSION3 { CvImageWidget *image_widget; g_return_if_fail (object != NULL); g_return_if_fail (CV_IS_IMAGE_WIDGET (object)); image_widget = CV_IMAGE_WIDGET (object); cvReleaseMat( &image_widget->scaled_image ); cvReleaseMat( &image_widget->original_image ); #if defined (GTK_VERSION3) if (GTK_WIDGET_CLASS (parent_class)->destroy) (* GTK_WIDGET_CLASS (parent_class)->destroy) (object); #else if (GTK_OBJECT_CLASS (parent_class)->destroy) (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); #endif //GTK_VERSION3 }
static void gwy_graph_window_class_init(GwyGraphWindowClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS(klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass); GtkObjectClass *object_class = GTK_OBJECT_CLASS(klass); gobject_class->finalize = gwy_graph_window_finalize; object_class->destroy = gwy_graph_window_destroy; widget_class->key_press_event = gwy_graph_window_key_pressed; }
static void _gradient_slider_destroy(GtkObject *object) { GtkDarktableGradientSliderClass *klass; g_return_if_fail(object != NULL); g_return_if_fail(DTGTK_IS_GRADIENT_SLIDER(object)); if(DTGTK_GRADIENT_SLIDER(object)->timeout_handle) g_source_remove(DTGTK_GRADIENT_SLIDER(object)->timeout_handle); DTGTK_GRADIENT_SLIDER(object)->timeout_handle = 0; if(DTGTK_GRADIENT_SLIDER(object)->colors) { g_list_foreach(DTGTK_GRADIENT_SLIDER(object)->colors, (GFunc)g_free, NULL); g_list_free(DTGTK_GRADIENT_SLIDER(object)->colors); DTGTK_GRADIENT_SLIDER(object)->colors = NULL; } klass = gtk_type_class(gtk_widget_get_type()); if (GTK_OBJECT_CLASS(klass)->destroy) { (* GTK_OBJECT_CLASS(klass)->destroy) (object); } }
static void window_destroy (GtkObject* object) { #ifdef HAVE_PLATFORM_OSX SbWindow* self = SB_WINDOW (object); if (self->_private->quit_item) { gtk_widget_destroy (self->_private->quit_item); self->_private->quit_item = NULL; } #endif GTK_OBJECT_CLASS (sb_window_parent_class)->destroy (object); }
static void gtk_xournal_destroy(GtkObject* object) { g_return_if_fail(object != NULL); g_return_if_fail(GTK_IS_XOURNAL(object)); GtkXournal* xournal = GTK_XOURNAL(object); delete xournal->pagePositionCache; xournal->pagePositionCache = NULL; delete xournal->selection; xournal->selection = NULL; delete xournal->layout; xournal->layout = NULL; GtkXournalClass* klass = (GtkXournalClass*) gtk_type_class( gtk_widget_get_type()); if (GTK_OBJECT_CLASS(klass)->destroy) { (*GTK_OBJECT_CLASS(klass)->destroy)(object); } }
static void bst_canvas_link_destroy (GtkObject *object) { BstCanvasLink *clink = BST_CANVAS_LINK (object); GnomeCanvasGroup *group = GNOME_CANVAS_GROUP (object); while (group->item_list) gtk_object_destroy (group->item_list->data); bst_canvas_link_set_ocsource (clink, NULL, 0); bst_canvas_link_set_icsource (clink, NULL, 0); GTK_OBJECT_CLASS (bst_canvas_link_parent_class)->destroy (object); }
static void gtkam_close_class_init (gpointer g_class, gpointer class_data) { GtkObjectClass *object_class; GObjectClass *gobject_class; object_class = GTK_OBJECT_CLASS (g_class); object_class->destroy = gtkam_close_destroy; gobject_class = G_OBJECT_CLASS (g_class); gobject_class->finalize = gtkam_close_finalize; parent_class = g_type_class_peek_parent (g_class); }
static void thunarx_property_page_class_init (ThunarxPropertyPageClass *klass) { GtkObjectClass *gtkobject_class; GtkWidgetClass *gtkwidget_class; GObjectClass *gobject_class; /* determine the parent type class */ thunarx_property_page_parent_class = g_type_class_peek_parent (klass); /* add our private data to the class type */ g_type_class_add_private (klass, sizeof (ThunarxPropertyPagePrivate)); gobject_class = G_OBJECT_CLASS (klass); gobject_class->get_property = thunarx_property_page_get_property; gobject_class->set_property = thunarx_property_page_set_property; gtkobject_class = GTK_OBJECT_CLASS (klass); gtkobject_class->destroy = thunarx_property_page_destroy; gtkwidget_class = GTK_WIDGET_CLASS (klass); gtkwidget_class->size_request = thunarx_property_page_size_request; gtkwidget_class->size_allocate = thunarx_property_page_size_allocate; /** * ThunarxPropertyPage::label: * * Text of the page's label. **/ g_object_class_install_property (gobject_class, PROP_LABEL, g_param_spec_string ("label", _("Label"), _("Text of the page's label"), NULL, G_PARAM_READWRITE)); /** * ThunarxPropertyPage::label-widget: * * A widget to display in place of the usual page label. **/ g_object_class_install_property (gobject_class, PROP_LABEL_WIDGET, g_param_spec_object ("label-widget", _("Label widget"), _("A widget to display in place of the usual page label"), GTK_TYPE_WIDGET, G_PARAM_READWRITE)); }
static void gtk_xtbin_class_init (GtkXtBinClass *klass) { GtkWidgetClass *widget_class; GtkObjectClass *object_class; parent_class = gtk_type_class (GTK_TYPE_SOCKET); widget_class = GTK_WIDGET_CLASS (klass); widget_class->realize = gtk_xtbin_realize; widget_class->unrealize = gtk_xtbin_unrealize; object_class = GTK_OBJECT_CLASS (klass); object_class->destroy = gtk_xtbin_destroy; }
static void gtk_border_combo_destroy (GtkObject * border_combo) { gint i,j; GtkBorderCombo *combo; combo=GTK_BORDER_COMBO(border_combo); for(i=0; i<combo->nrows; i++) for(j=0; j<combo->ncols; j++){ if(combo->button[i][j]){ gtk_widget_destroy(combo->button[i][j]); combo->button[i][j] = NULL; } } if(GTK_BORDER_COMBO(border_combo)->table){ gtk_widget_destroy (GTK_BORDER_COMBO(border_combo)->table); GTK_BORDER_COMBO(border_combo)->table = NULL; } if (GTK_OBJECT_CLASS (parent_class)->destroy) (*GTK_OBJECT_CLASS (parent_class)->destroy) (border_combo); }