mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
playback/player: gtk-play: Add close button to the playback speed dialog
This commit is contained in:
parent
efd3c03ab2
commit
cce3ab6381
1 changed files with 3 additions and 2 deletions
|
@ -1066,9 +1066,10 @@ player_speed_clicked_cb (GtkButton * button, GtkPlay * play)
|
||||||
GtkWidget *content;
|
GtkWidget *content;
|
||||||
GtkWidget *rate_spinbutton;
|
GtkWidget *rate_spinbutton;
|
||||||
|
|
||||||
dialog = gtk_dialog_new ();
|
dialog =
|
||||||
|
gtk_dialog_new_with_buttons ("Playback speed control", GTK_WINDOW (play),
|
||||||
|
GTK_DIALOG_DESTROY_WITH_PARENT, "_Close", GTK_RESPONSE_CLOSE, NULL);
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (play));
|
gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (play));
|
||||||
gtk_window_set_title (GTK_WINDOW (dialog), "Playback speed control");
|
|
||||||
|
|
||||||
content = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
|
content = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
|
||||||
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 1);
|
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 1);
|
||||||
|
|
Loading…
Reference in a new issue