]> gitweb.michael.orlitzky.com - xfce4-hdaps.git/commitdiff
Fix the initial icon size, thanks to Harald Judt.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 3 Jun 2012 00:51:09 +0000 (20:51 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 3 Jun 2012 00:51:09 +0000 (20:51 -0400)
panel-plugin/xfce4-hdaps.c

index e263ce5cf3222022edce4438a7b54f6fddca6e88..232e7774290b5546b37bf8fec9937ccc241cdf4d 100644 (file)
@@ -345,6 +345,9 @@ static gboolean hdaps_size_changed(XfcePanelPlugin *plugin,
     gtk_widget_set_size_request(GTK_WIDGET(plugin), size, -1);
   }
 
+  /* This fixes an issue where the initial icon size is too small. */
+  hdaps_set_icon(hdaps, hdaps->previous_status);
+
   /* We handled the change, so we're supposed to return TRUE. */
   return TRUE;
 }