Fix progress bar grow direction in deskbar and vertical modes

master
Harald Judt 2016-08-07 18:42:51 +02:00 committed by Landry Breuil
parent 760a76e234
commit a0480b5fad
1 changed files with 5 additions and 1 deletions

View File

@ -349,7 +349,10 @@ static void monitor_set_mode (XfcePanelPlugin *plugin, XfcePanelPluginMode mode,
gtk_label_set_angle(GTK_LABEL(global->monitor->rcv_label), 0);
gtk_label_set_angle(GTK_LABEL(global->monitor->sent_label), 0);
for (i = 0; i < SUM; i++)
{
gtk_orientable_set_orientation(GTK_ORIENTABLE(global->monitor->status[i]),GTK_ORIENTATION_HORIZONTAL);
gtk_progress_bar_set_inverted(GTK_PROGRESS_BAR(global->monitor->status[i]), FALSE);
}
}
else if (mode == XFCE_PANEL_PLUGIN_MODE_VERTICAL)
{
@ -365,6 +368,7 @@ static void monitor_set_mode (XfcePanelPlugin *plugin, XfcePanelPluginMode mode,
for (i = 0; i < SUM; i++)
{
gtk_orientable_set_orientation(GTK_ORIENTABLE(global->monitor->status[i]),GTK_ORIENTATION_HORIZONTAL);
gtk_progress_bar_set_inverted(GTK_PROGRESS_BAR(global->monitor->status[i]), FALSE);
}
}
else /* mode == XFCE_PANEL_PLUGIN_MODE_HORIZONTAL */