[glade] GladeBaseEditor: use GSIZE_TO_POINTER to store a GType on a pointer
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] GladeBaseEditor: use GSIZE_TO_POINTER to store a GType on a pointer
- Date: Sun, 31 Dec 2017 14:21:56 +0000 (UTC)
commit 4c0e415eeafe8099b00a5ba4ca75a76b1d496e87
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Sun Dec 31 11:19:15 2017 -0300
GladeBaseEditor: use GSIZE_TO_POINTER to store a GType on a pointer
Fix bug 774994 "in treeview columns editor contextual menu does nothing"
gladeui/glade-base-editor.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gladeui/glade-base-editor.c b/gladeui/glade-base-editor.c
index 28ac311..916078f 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]