summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2017-04-02 15:49:48 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2017-04-02 15:49:48 +0200
commit2bbd110113f789c56609b3288258f667e0f3851a (patch)
treeb1ca149ac2e80acd720ba38fa6e77c72ae4854c5
parentdad9b36e0e91524e8e342cf924026c37fcb1730e (diff)
glib-demo: Show play mode in movie properties view
-rw-r--r--glib/demo/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/glib/demo/utils.c b/glib/demo/utils.c
index 10d6d4bd..8194ff2b 100644
--- a/glib/demo/utils.c
+++ b/glib/demo/utils.c
@@ -549,6 +549,7 @@ pgd_movie_view_set_movie (GtkWidget *movie_view,
{
GtkWidget *table;
GtkWidget *button;
+ GEnumValue *enum_value;
gint row = 0;
table = gtk_bin_get_child (GTK_BIN (movie_view));
@@ -575,6 +576,8 @@ pgd_movie_view_set_movie (GtkWidget *movie_view,
pgd_table_add_property (GTK_GRID (table), "<b>Filename:</b>", poppler_movie_get_filename (movie), &row);
pgd_table_add_property (GTK_GRID (table), "<b>Need Poster:</b>", poppler_movie_need_poster (movie) ? "Yes" : "No", &row);
pgd_table_add_property (GTK_GRID (table), "<b>Show Controls:</b>", poppler_movie_show_controls (movie) ? "Yes" : "No", &row);
+ enum_value = g_enum_get_value ((GEnumClass *) g_type_class_ref (POPPLER_TYPE_MOVIE_PLAY_MODE), poppler_movie_get_play_mode (movie));
+ pgd_table_add_property (GTK_GRID (table), "<b>Play mode:</b>", enum_value->value_name, &row);
button = gtk_button_new_with_mnemonic ("_Play");
g_signal_connect (button, "clicked",