libegg r925 - trunk/libegg/toolbareditor
- From: xan svn gnome org
- To: svn-commits-list gnome org
- Subject: libegg r925 - trunk/libegg/toolbareditor
- Date: Fri, 23 Jan 2009 17:58:16 +0000 (UTC)
Author: xan
Date: Fri Jan 23 17:58:16 2009
New Revision: 925
URL: http://svn.gnome.org/viewvc/libegg?rev=925&view=rev
Log:
Use gtk_widget_get_action instead of accessing the 'gtk-action'
property directly, which is private.
See bug #568848 for details.
Modified:
trunk/libegg/toolbareditor/egg-editable-toolbar.c
Modified: trunk/libegg/toolbareditor/egg-editable-toolbar.c
==============================================================================
--- trunk/libegg/toolbareditor/egg-editable-toolbar.c (original)
+++ trunk/libegg/toolbareditor/egg-editable-toolbar.c Fri Jan 23 17:58:16 2009
@@ -200,7 +200,7 @@
gtk_widget_hide (widget);
- action = g_object_get_data (G_OBJECT (widget), "gtk-action");
+ action = gtk_widget_get_action (widget);
if (action == NULL) return;
flags = egg_toolbars_model_get_name_flags (etoolbar->priv->model,
@@ -226,7 +226,7 @@
{
gtk_widget_show (widget);
- action = g_object_get_data (G_OBJECT (widget), "gtk-action");
+ action = gtk_widget_get_action (widget);
if (action == NULL) return;
flags = egg_toolbars_model_get_name_flags (etoolbar->priv->model,
@@ -497,8 +497,7 @@
static void
configure_item_tooltip (GtkToolItem *item)
{
- GtkAction *action = g_object_get_data (G_OBJECT (item),
- "gtk-action");
+ GtkAction *action = gtk_widget_get_action (GTK_WIDGET (item));
if (action != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]