applet: read speech string from config
authorAlex Badea <vamposdecampos@gmail.com>
Tue, 14 Sep 2010 20:31:51 +0000 (23:31 +0300)
committerAlex Badea <vamposdecampos@gmail.com>
Tue, 14 Sep 2010 20:31:51 +0000 (23:31 +0300)
src/applet.c

index 5bdc339..a61ce26 100644 (file)
@@ -311,7 +311,7 @@ osso_return_t execute(osso_context_t *osso, gpointer data, gboolean user_activat
        gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
 
        HildonEntry *text = HILDON_ENTRY(hildon_entry_new(HILDON_SIZE_AUTO));
        gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
 
        HildonEntry *text = HILDON_ENTRY(hildon_entry_new(HILDON_SIZE_AUTO));
-       gtk_entry_set_text(GTK_ENTRY(text), "%H:%M");
+       gtk_entry_set_text(GTK_ENTRY(text), cfg.text);
        gtk_box_pack_start(GTK_BOX(hbox),
                hildon_caption_new(title_group, "Speech string", GTK_WIDGET(text), NULL, HILDON_CAPTION_MANDATORY),
                TRUE, TRUE, 0);
        gtk_box_pack_start(GTK_BOX(hbox),
                hildon_caption_new(title_group, "Speech string", GTK_WIDGET(text), NULL, HILDON_CAPTION_MANDATORY),
                TRUE, TRUE, 0);