From: Vlad Date: Wed, 1 Sep 2010 09:32:12 +0000 (+0300) Subject: added message "Loading Livewallpaper's scene..." X-Git-Url: http://git.maemo.org/git/?p=livewp;a=commitdiff_plain;h=bdad9d760fa84784442cb68f365015da5b89c0b2 added message "Loading Livewallpaper's scene..." --- diff --git a/applet/src/livewp-main.c b/applet/src/livewp-main.c index 6e0e630..614092b 100644 --- a/applet/src/livewp-main.c +++ b/applet/src/livewp-main.c @@ -197,7 +197,7 @@ short_timeout (AWallpaperPlugin *desktop_plugin) }else return TRUE; /* keep running this event */ } - +/*******************************************************************************/ void run_long_timeout(AWallpaperPlugin *desktop_plugin) { @@ -245,7 +245,7 @@ run_long_timeout(AWallpaperPlugin *desktop_plugin) } } - +/*******************************************************************************/ gboolean long_timeout (AWallpaperPlugin *desktop_plugin) { @@ -278,16 +278,18 @@ long_timeout (AWallpaperPlugin *desktop_plugin) run_long_timeout(desktop_plugin); return TRUE; /* keep running this event */ } - /*******************************************************************************/ void create_xwindow (Animation_WallpaperPrivate *priv){ GtkWidget *main_widget = NULL; + GtkWidget *label = NULL; /* Create Main GUI */ main_widget = hildon_window_new (); priv->window = main_widget; gtk_window_set_title(GTK_WINDOW(main_widget), PACKAGE); gtk_window_fullscreen(GTK_WINDOW(main_widget)); + label = gtk_label_new(_("Loading Livewallpaper scene ...")); + gtk_container_add (GTK_CONTAINER (main_widget), label); gtk_widget_show_all(GTK_WIDGET(main_widget)); set_live_bg(GDK_WINDOW_XDISPLAY (main_widget->window), GDK_WINDOW_XID (main_widget->window), priv->view); } @@ -308,7 +310,6 @@ main(int argc, char *argv[]) Animation_WallpaperPrivate *priv = g_new0 (Animation_WallpaperPrivate, 1); desktop_plugin->priv = priv; - gst_init (NULL, NULL); /* Ininitializing */ hildon_gtk_init (&argc, &argv); @@ -354,9 +355,10 @@ main(int argc, char *argv[]) (GConfClientNotifyFunc)view_changed, priv, NULL, NULL); /* Set start position of Video to zero */ - if (!strcmp(priv->theme,"Video")) + if (!strcmp(priv->theme,"Video")){ + gst_init (NULL, NULL); priv->theme_int_parametr1 = 0; - + } init_scene_theme(desktop_plugin);