Skip to content
Snippets Groups Projects
Commit b0affb2c authored by Landry Breuil's avatar Landry Breuil
Browse files

Declare variable at the beginning of the function

parent 4b4de96f
No related branches found
No related tags found
No related merge requests found
...@@ -115,13 +115,14 @@ static gboolean ...@@ -115,13 +115,14 @@ static gboolean
cb_set_size (XfcePanelPlugin *plugin, int size, PluginData *pd) cb_set_size (XfcePanelPlugin *plugin, int size, PluginData *pd)
{ {
GdkPixbuf *pb; GdkPixbuf *pb;
int width;
#if defined (LIBXFCE4PANEL_CHECK_VERSION) && LIBXFCE4PANEL_CHECK_VERSION (4,9,0) #if defined (LIBXFCE4PANEL_CHECK_VERSION) && LIBXFCE4PANEL_CHECK_VERSION (4,9,0)
/* reduce the size of the plugin to a single row */ /* reduce the size of the plugin to a single row */
size /= xfce_panel_plugin_get_nrows (plugin); size /= xfce_panel_plugin_get_nrows (plugin);
#endif #endif
int width = size - 2 - 2 * MAX (pd->button->style->xthickness, width = size - 2 - 2 * MAX (pd->button->style->xthickness,
pd->button->style->ythickness); pd->button->style->ythickness);
TRACE ("Get the icon from the theme"); TRACE ("Get the icon from the theme");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment