BUG 81 has been eliminated; (problem with refreshing words list when selecting dictio...
authorgadomska_anna <gadomska.anna@gmail.com>
Thu, 16 Aug 2007 12:59:17 +0000 (12:59 +0000)
committergadomska_anna <gadomska.anna@gmail.com>
Thu, 16 Aug 2007 12:59:17 +0000 (12:59 +0000)
git-svn-id: file:///svnroot/mdictionary/trunk@179 5bde0345-f819-0410-ac75-e5045f9217cc

src/gui/src/ws_gui_callbacks.c

index 68a7aba..3455996 100644 (file)
@@ -2010,7 +2010,7 @@ void ws_gui_dictionary_close_bookmark(GtkMenuItem *menuitem, gpointer user_data)
        ws_gui_fill_html(" ", ws_gui_app);
        ws_gui_app->html_flag = TRUE;
        //g_strstrip(ws_gui_app->last_searched);
-       if (ws_gui_app->last_searched != NULL && ws_gui_app->first_run == FALSE) 
+       if (g_strstrip(ws_gui_app->last_searched) != NULL && ws_gui_app->first_run == FALSE) 
        {
        g_object_set(G_OBJECT(ws_gui_app->ws_gui_hildon_find_toolbar),
                                      "prefix",
@@ -2393,7 +2393,11 @@ void ws_refresh_search_results(gpointer user_data) {
                                "prefix",
                                &temp,
                                NULL);
-       ws_dbus_client_find_word (ws_gui_app->dbus_data, temp);
+       
+       if (ws_gui_app->first_run == FALSE)
+       {
+               ws_dbus_client_find_word (ws_gui_app->dbus_data, temp);
+       }
        //gtk_widget_hide(ws_gui_app->ws_gui_list_hbox);
        //-----------------------------------------------
 }