當前位置: 首頁>>代碼示例>>C++>>正文


C++ GTK_OBJECT_CLASS函數代碼示例

本文整理匯總了C++中GTK_OBJECT_CLASS函數的典型用法代碼示例。如果您正苦於以下問題:C++ GTK_OBJECT_CLASS函數的具體用法?C++ GTK_OBJECT_CLASS怎麽用?C++ GTK_OBJECT_CLASS使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了GTK_OBJECT_CLASS函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: mateconf_bookmarks_dialog_destroy

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);
	}
}
開發者ID:fatman2021,項目名稱:mate-conf-editor,代碼行數:21,代碼來源:mateconf-bookmarks-dialog.c

示例2: alleyoop_destroy

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);
}
開發者ID:GNOME,項目名稱:alleyoop,代碼行數:12,代碼來源:alleyoop.c

示例3: gwy_graph_data_destroy

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);
}
開發者ID:svn2github,項目名稱:gwyddion,代碼行數:12,代碼來源:gwygraphdata.c

示例4: gtk_ev_destroy

/* 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);
}
開發者ID:tomby42,項目名稱:prg-xws,代碼行數:22,代碼來源:gtkev.c

示例5: sunone_invitation_list_destroy

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);
}
開發者ID:GNOME,項目名稱:evolution-jescs,代碼行數:40,代碼來源:sunone-invitation-list.c

示例6: gwy_vector_layer_class_init

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));
}
開發者ID:svn2github,項目名稱:gwyddion,代碼行數:52,代碼來源:gwyvectorlayer.c

示例7: gwy_color_axis_destroy

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);
}
開發者ID:svn2github,項目名稱:gwyddion,代碼行數:13,代碼來源:gwycoloraxis.c

示例8: gtk_hex_entry_finalize

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);
}
開發者ID:duke1102,項目名稱:psxdev,代碼行數:13,代碼來源:gtkhexentry.c

示例9: gtk_expander_destroy

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);
}
開發者ID:Krlos0208,項目名稱:Sintetizador_Voz,代碼行數:13,代碼來源:gtkexpander.c

示例10: emmb_destroy

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);
}
開發者ID:ebbywiselyn,項目名稱:evolution,代碼行數:13,代碼來源:em-message-browser.c

示例11: sp_gradient_image_destroy

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
}
開發者ID:Grandrogue,項目名稱:inkscape_metal,代碼行數:22,代碼來源:gradient-image.cpp

示例12: gwy_layer_basic_destroy

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);
}
開發者ID:svn2github,項目名稱:gwyddion,代碼行數:13,代碼來源:gwylayer-basic.c

示例13: flowwidgetgtk_destroy

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);
}
開發者ID:Strongc,項目名稱:proview,代碼行數:13,代碼來源:flow_widget_gtk.cpp

示例14: _gwy_app_file_chooser_class_init

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;
}
開發者ID:svn2github,項目名稱:gwyddion,代碼行數:13,代碼來源:gwyappfilechooser.c

示例15: gitg_window_class_init

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));
}
開發者ID:mpe,項目名稱:gitg,代碼行數:13,代碼來源:gitg-window.c


注:本文中的GTK_OBJECT_CLASS函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。