[Xfce4-commits] [xfce/xfce4-panel] 01/01: Don't let the wrapper crash on unknown properties (Bug #13614)
noreply at xfce.org
noreply at xfce.org
Wed Jun 21 20:53:36 CEST 2017
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-panel.
commit eaca5041ae4a37b772f48b258819ab06bc9da3d3
Author: Peter de Ridder <peter at xfce.org>
Date: Mon Jun 19 21:06:35 2017 +0200
Don't let the wrapper crash on unknown properties (Bug #13614)
This will help with the transition and mixed panel version setups
(libxfce4-panel, wrapper and the panel).
Also move the OPACITY property to the end since it's new.
---
libxfce4panel/xfce-panel-plugin-provider.h | 4 ++--
panel/panel-plugin-external-46.c | 4 ----
wrapper/main.c | 4 +++-
3 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/libxfce4panel/xfce-panel-plugin-provider.h b/libxfce4panel/xfce-panel-plugin-provider.h
index d568e8a..8d173c9 100644
--- a/libxfce4panel/xfce-panel-plugin-provider.h
+++ b/libxfce4panel/xfce-panel-plugin-provider.h
@@ -107,7 +107,6 @@ typedef enum /*< skip >*/
PROVIDER_PROP_TYPE_SET_NROWS, /* gint */
PROVIDER_PROP_TYPE_SET_LOCKED, /* gboolean */
PROVIDER_PROP_TYPE_SET_SENSITIVE, /* gboolean */
- PROVIDER_PROP_TYPE_SET_OPACITY, /* gdouble */
PROVIDER_PROP_TYPE_SET_BACKGROUND_COLOR, /* string, wrapper only */
PROVIDER_PROP_TYPE_SET_BACKGROUND_IMAGE, /* string, wrapper only */
PROVIDER_PROP_TYPE_ACTION_REMOVED, /* none */
@@ -117,7 +116,8 @@ typedef enum /*< skip >*/
PROVIDER_PROP_TYPE_ACTION_BACKGROUND_UNSET, /* none */
PROVIDER_PROP_TYPE_ACTION_SHOW_CONFIGURE, /* none */
PROVIDER_PROP_TYPE_ACTION_SHOW_ABOUT, /* none */
- PROVIDER_PROP_TYPE_ACTION_ASK_REMOVE /* none */
+ PROVIDER_PROP_TYPE_ACTION_ASK_REMOVE, /* none */
+ PROVIDER_PROP_TYPE_SET_OPACITY /* gdouble */
}
XfcePanelPluginProviderPropType;
diff --git a/panel/panel-plugin-external-46.c b/panel/panel-plugin-external-46.c
index c115486..9ccf313 100644
--- a/panel/panel-plugin-external-46.c
+++ b/panel/panel-plugin-external-46.c
@@ -290,10 +290,6 @@ panel_plugin_external_46_set_properties (PanelPluginExternal *external,
event.xclient.data.s[1] = g_value_get_int (&property->value);
break;
- case PROVIDER_PROP_TYPE_SET_BACKGROUND_ALPHA:
- event.xclient.data.s[1] = g_value_get_double (&property->value) * 100.00;
- break;
-
case PROVIDER_PROP_TYPE_SET_LOCKED:
case PROVIDER_PROP_TYPE_SET_SENSITIVE:
event.xclient.data.s[1] = g_value_get_boolean (&property->value);
diff --git a/wrapper/main.c b/wrapper/main.c
index cdf7d68..d46eed7 100644
--- a/wrapper/main.c
+++ b/wrapper/main.c
@@ -156,7 +156,9 @@ wrapper_gproxy_set (DBusGProxy *dbus_gproxy,
break;
default:
- panel_assert_not_reached ();
+ g_critical ("Received unknown plugin property %u for %s-%d",
+ type, xfce_panel_plugin_provider_get_name (provider),
+ xfce_panel_plugin_provider_get_unique_id (provider));
break;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list