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:
2026-01-30 17:40:44 -07:00
parent d330d6d537
commit 541ee90d27

View File

@@ -749,13 +749,21 @@ mg_progressbar_update (GtkWidget *bar)
if (type == 0)
{
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_RIGHT_TO_LEFT);
#endif
} else
{
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_LEFT_TO_RIGHT);
#endif
}
pos = 0.05;
}