[glade] GladeWidgetAdaptor: use real type to register adaptors



commit b79ff9626dc844794910c6643e6b3d199c6f1e0e
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Sat Dec 30 19:27:32 2017 -0300

    GladeWidgetAdaptor: use real type to register adaptors
    
    This way classes that have a different runtime type like GtkOffscreenWindow can be registered.

 gladeui/glade-widget-adaptor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gladeui/glade-widget-adaptor.c b/gladeui/glade-widget-adaptor.c
index 7a30932..f785498 100644
--- a/gladeui/glade-widget-adaptor.c
+++ b/gladeui/glade-widget-adaptor.c
@@ -1895,7 +1895,7 @@ glade_widget_adaptor_register (GladeWidgetAdaptor *adaptor)
     adaptor_hash = g_hash_table_new_full (g_direct_hash, g_direct_equal,
                                           NULL, g_object_unref);
 
-  g_hash_table_insert (adaptor_hash, GSIZE_TO_POINTER (adaptor->priv->type), adaptor);
+  g_hash_table_insert (adaptor_hash, GSIZE_TO_POINTER (adaptor->priv->real_type), adaptor);
 
   g_signal_emit_by_name (glade_app_get (), "widget-adaptor-registered", adaptor, NULL);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]