summaryrefslogtreecommitdiff
path: root/gladeui
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2017-12-31 11:19:15 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2017-12-31 11:19:15 -0300
commit4c0e415eeafe8099b00a5ba4ca75a76b1d496e87 (patch)
treecc3b33b68d8827c93d156d3ab6abf30d59dd2bf4 /gladeui
parent019962474143864bac079546b681b2d8857274cd (diff)
downloadglade-4c0e415eeafe8099b00a5ba4ca75a76b1d496e87.tar.gz
GladeBaseEditor: use GSIZE_TO_POINTER to store a GType on a pointer
Fix bug 774994 "in treeview columns editor contextual menu does nothing"
Diffstat (limited to 'gladeui')
-rw-r--r--gladeui/glade-base-editor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gladeui/glade-base-editor.c b/gladeui/glade-base-editor.c
index 28ac3111..916078f1 100644
--- a/gladeui/glade-base-editor.c
+++ b/gladeui/glade-base-editor.c
@@ -784,7 +784,7 @@ glade_base_editor_add_item_activate (GtkMenuItem *menuitem,
GladeBaseEditor *e)
{
GObject *item = G_OBJECT (menuitem);
- GType type = GPOINTER_TO_INT (g_object_get_data (item, "object_type"));
+ GType type = GPOINTER_TO_SIZE (g_object_get_data (item, "object_type"));
GladeBaseEditorAddMode add_mode =
GPOINTER_TO_INT (g_object_get_data (item, "object_add_mode"));
@@ -825,7 +825,7 @@ glade_base_editor_popup (GladeBaseEditor *editor, GladeWidget *widget)
gtk_widget_show (item);
g_object_set_data (G_OBJECT (item), "object_type",
- GINT_TO_POINTER (iter_type));
+ GSIZE_TO_POINTER (iter_type));
g_object_set_data (G_OBJECT (item), "object_add_mode",
GINT_TO_POINTER (ADD_SIBLING));
@@ -857,7 +857,7 @@ glade_base_editor_popup (GladeBaseEditor *editor, GladeWidget *widget)
gtk_widget_show (item);
g_object_set_data (G_OBJECT (item), "object_type",
- GINT_TO_POINTER (iter_type));
+ GSIZE_TO_POINTER (iter_type));
g_object_set_data (G_OBJECT (item), "object_add_mode",
GINT_TO_POINTER (ADD_CHILD));