mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-18 11:40:18 +00:00
Updated mg_progressbar_update() to toggle GTK3 progress bar direction via gtk_progress_bar_set_inverted() while keeping GTK2 orientation enums behind #if !HAVE_GTK3, preserving the flip behavior each cycle for both builds.
This commit is contained in:
@@ -749,13 +749,21 @@ mg_progressbar_update (GtkWidget *bar)
|
|||||||
if (type == 0)
|
if (type == 0)
|
||||||
{
|
{
|
||||||
type = 1;
|
type = 1;
|
||||||
|
#if HAVE_GTK3
|
||||||
|
gtk_progress_bar_set_inverted (GTK_PROGRESS_BAR (bar), TRUE);
|
||||||
|
#else
|
||||||
gtk_progress_bar_set_orientation ((GtkProgressBar *) bar,
|
gtk_progress_bar_set_orientation ((GtkProgressBar *) bar,
|
||||||
GTK_PROGRESS_RIGHT_TO_LEFT);
|
GTK_PROGRESS_RIGHT_TO_LEFT);
|
||||||
|
#endif
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
type = 0;
|
type = 0;
|
||||||
|
#if HAVE_GTK3
|
||||||
|
gtk_progress_bar_set_inverted (GTK_PROGRESS_BAR (bar), FALSE);
|
||||||
|
#else
|
||||||
gtk_progress_bar_set_orientation ((GtkProgressBar *) bar,
|
gtk_progress_bar_set_orientation ((GtkProgressBar *) bar,
|
||||||
GTK_PROGRESS_LEFT_TO_RIGHT);
|
GTK_PROGRESS_LEFT_TO_RIGHT);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
pos = 0.05;
|
pos = 0.05;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user