• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ GTK_OBJECT_CLASS函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中GTK_OBJECT_CLASS函数的典型用法代码示例。如果您正苦于以下问题:C++ GTK_OBJECT_CLASS函数的具体用法?C++ GTK_OBJECT_CLASS怎么用?C++ GTK_OBJECT_CLASS使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了GTK_OBJECT_CLASS函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: gimp_message_box_destroy

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);
}
开发者ID:jdburton,项目名称:gimp-osx,代码行数:13,代码来源:gimpmessagebox.c


示例17: gtk_button_destroy

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);
}
开发者ID:zjx632,项目名称:tinygtk,代码行数:13,代码来源:gtkbutton.c


示例18: gtk_color_combo_destroy

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 <[email protected]> */
   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);
}
开发者ID:Onjrew,项目名称:OpenEV,代码行数:22,代码来源:gtkcolorcombo.c


示例19: cvImageWidget_destroy

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
}
开发者ID:112000,项目名称:opencv,代码行数:22,代码来源:window_gtk.cpp


示例20: gwy_graph_window_class_init

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;
}
开发者ID:svn2github,项目名称:gwyddion,代码行数:13,代码来源:gwygraphwindow.c



注:本文中的GTK_OBJECT_CLASS函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ GTK_OPTION_MENU函数代码示例发布时间:2022-05-30
下一篇:
C++ GTK_OBJECT函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap