diff options
author | Benjamin Otte <otte@gnome.org> | 2007-10-21 18:57:32 +0200 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2007-10-21 18:57:32 +0200 |
commit | 696ee12d15d0c2632f2999ffe75767be2974250b (patch) | |
tree | 62275bc6caba8d7abfd121de3594b6a0f04acea3 | |
parent | d3b115749a96b03c392c1378b3e319e9755acd4d (diff) |
set the window title when a file was selected
-rw-r--r-- | player/swfdec-window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/player/swfdec-window.c b/player/swfdec-window.c index 45860ab..eb882d0 100644 --- a/player/swfdec-window.c +++ b/player/swfdec-window.c @@ -90,6 +90,7 @@ swfdec_window_set_url (SwfdecWindow *window, const char *url) { SwfdecWindowSettings settings; GObject *o; + char *s; g_return_val_if_fail (SWFDEC_IS_WINDOW (window), FALSE); g_return_val_if_fail (url != NULL, FALSE); @@ -102,6 +103,9 @@ swfdec_window_set_url (SwfdecWindow *window, const char *url) swfdec_player_set_loader (window->player, window->loader); o = gtk_builder_get_object (window->builder, "player-widget"); swfdec_gtk_widget_set_player (SWFDEC_GTK_WIDGET (o), window->player); + s = swfdec_loader_get_filename (window->loader); + gtk_window_set_title (GTK_WINDOW (window->window), s); + g_free (s); /* cute little hack to apply the settings without lots of code */ settings = window->settings; window->settings = default_settings; |