mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
seek: The new combo box text API is available since 2.23.0 and 2.91.1
Only use it conditionally.
This commit is contained in:
parent
95db070470
commit
10c693c696
2 changed files with 14 additions and 0 deletions
|
@ -2796,11 +2796,17 @@ main (int argc, char **argv)
|
|||
step = gtk_expander_new ("step options");
|
||||
hbox = gtk_hbox_new (FALSE, 0);
|
||||
|
||||
#if (GTK_CHECK_VERSION(2, 23, 0) && !GTK_CHECK_VERSION(2, 90, 0)) || GTK_CHECK_VERSION(2, 91, 1)
|
||||
format_combo = gtk_combo_box_text_new ();
|
||||
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (format_combo),
|
||||
"frames");
|
||||
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (format_combo),
|
||||
"time (ms)");
|
||||
#else
|
||||
format_combo = gtk_combo_box_new_text ();
|
||||
gtk_combo_box_append_text (GTK_COMBO_BOX (format_combo), "frames");
|
||||
gtk_combo_box_append_text (GTK_COMBO_BOX (format_combo), "time (ms)");
|
||||
#endif
|
||||
gtk_combo_box_set_active (GTK_COMBO_BOX (format_combo), 0);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), format_combo, FALSE, FALSE, 2);
|
||||
|
||||
|
|
|
@ -2741,9 +2741,17 @@ main (int argc, char **argv)
|
|||
step = gtk_expander_new ("step options");
|
||||
hbox = gtk_hbox_new (FALSE, 0);
|
||||
|
||||
#if (GTK_CHECK_VERSION(2, 23, 0) && !GTK_CHECK_VERSION(2, 90, 0)) || GTK_CHECK_VERSION(2, 91, 1)
|
||||
format_combo = gtk_combo_box_text_new ();
|
||||
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (format_combo),
|
||||
"frames");
|
||||
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (format_combo),
|
||||
"time (ms)");
|
||||
#else
|
||||
format_combo = gtk_combo_box_new_text ();
|
||||
gtk_combo_box_append_text (GTK_COMBO_BOX (format_combo), "frames");
|
||||
gtk_combo_box_append_text (GTK_COMBO_BOX (format_combo), "time (ms)");
|
||||
#endif
|
||||
gtk_combo_box_set_active (GTK_COMBO_BOX (format_combo), 0);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), format_combo, FALSE, FALSE, 2);
|
||||
|
||||
|
|
Loading…
Reference in a new issue