[glade] Make the cursor also have the deprecated graphic.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Make the cursor also have the deprecated graphic.
- Date: Thu, 10 Mar 2011 04:25:53 +0000 (UTC)
commit 6c788dda9cc7bd0965b483b095b327c9f3041221
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Thu Mar 10 01:23:36 2011 +0900
Make the cursor also have the deprecated graphic.
gladeui/glade-widget-adaptor.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gladeui/glade-widget-adaptor.c b/gladeui/glade-widget-adaptor.c
index 1bbff3c..b7e9953 100644
--- a/gladeui/glade-widget-adaptor.c
+++ b/gladeui/glade-widget-adaptor.c
@@ -549,10 +549,7 @@ glade_widget_adaptor_constructor (GType type,
/* Build decorations */
if (!adaptor->priv->icon_name)
- {
- adaptor->priv->icon_name = g_strdup ("gtk-missing-image");
- }
- gwa_create_cursor (adaptor);
+ adaptor->priv->icon_name = g_strdup ("gtk-missing-image");
/* Let it leek */
if ((object_class = g_type_class_ref (adaptor->priv->type)))
@@ -2644,7 +2641,7 @@ glade_widget_adaptor_from_catalog (GladeCatalog * catalog,
gwa_extend_with_node (adaptor, class_node, module,
glade_catalog_get_domain (catalog));
-
+ /* Finalize the icon and overlay it if it's deprecated */
if (GWA_DEPRECATED (adaptor))
{
gchar *deprecated_icon = generate_deprecated_icon (adaptor->priv->icon_name);
@@ -2653,6 +2650,9 @@ glade_widget_adaptor_from_catalog (GladeCatalog * catalog,
adaptor->priv->icon_name = deprecated_icon;
}
+ /* Postpone creating the cursor until we have the right graphic for it */
+ gwa_create_cursor (adaptor);
+
/* Set default weight on properties */
for (parent_type = adaptor->priv->type;
parent_type != 0; parent_type = g_type_parent (parent_type))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]