From 76e09fa116cc29e39faa886af976a74c8ebffd9f Mon Sep 17 00:00:00 2001 From: Andrzej Date: Mon, 23 Jan 2012 23:47:44 +0900 Subject: [PATCH] panel plugin: set "small" property to TRUE. --- panel-plugin/xfce-mixer-plugin.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/panel-plugin/xfce-mixer-plugin.c b/panel-plugin/xfce-mixer-plugin.c index f6cf276..81bf5d1 100644 --- a/panel-plugin/xfce-mixer-plugin.c +++ b/panel-plugin/xfce-mixer-plugin.c @@ -221,6 +221,10 @@ xfce_mixer_plugin_construct (XfcePanelPlugin *plugin) /* Update the plugin if it was already set up */ if (G_LIKELY (GST_IS_MIXER (mixer_plugin->card) && GST_IS_MIXER_TRACK (mixer_plugin->track))) xfce_mixer_plugin_update_track (mixer_plugin); + +#if defined (LIBXFCE4PANEL_CHECK_VERSION) && LIBXFCE4PANEL_CHECK_VERSION (4,9,0) + xfce_panel_plugin_set_small (plugin, TRUE); +#endif } @@ -231,6 +235,11 @@ xfce_mixer_plugin_size_changed (XfceMixerPlugin *mixer_plugin, { g_return_val_if_fail (mixer_plugin != NULL, FALSE); +#if defined (LIBXFCE4PANEL_CHECK_VERSION) && LIBXFCE4PANEL_CHECK_VERSION (4,9,0) + size /= xfce_panel_plugin_get_nrows (XFCE_PANEL_PLUGIN (mixer_plugin->plugin)); + gtk_widget_set_size_request (GTK_WIDGET (mixer_plugin->button), size, size); +#endif + /* Determine size for the volume button icons */ size -= 2 + 2 * MAX (mixer_plugin->button->style->xthickness, mixer_plugin->button->style->ythickness); -- 1.7.5.4