GtkTreeModel* ws_gui_model; ///< model of GtkTree
GtkWidget* ws_gui_view; ///< variable responsible for view of GtkTree
GtkTreeSelection* ws_gui_selection; ///< variable necessary to read selection (from words list)
GtkTreeModel* ws_gui_model; ///< model of GtkTree
GtkWidget* ws_gui_view; ///< variable responsible for view of GtkTree
GtkTreeSelection* ws_gui_selection; ///< variable necessary to read selection (from words list)
};
/** \brief struct which contains all components of application
};
/** \brief struct which contains all components of application
GTK_WIDGET(ws_gui_app->ws_gui_menu->ws_gui_menu_search),
FALSE);
GTK_WIDGET(ws_gui_app->ws_gui_menu->ws_gui_menu_search),
FALSE);
+ gtk_widget_set_sensitive(
+ GTK_WIDGET(ws_gui_app->ws_gui_w_list->ws_gui_view),
+ FALSE);
+
break;
}
case WS_DBUS_INFO_CACHING_FINISHED:
{
break;
}
case WS_DBUS_INFO_CACHING_FINISHED:
{
GTK_WIDGET(ws_gui_app->ws_gui_banner_caching));
GTK_WIDGET(ws_gui_app->ws_gui_banner_caching));
- ws_gui_app->caching_flag = FALSE;
- gtk_widget_set_sensitive(
+ ws_gui_app->caching_flag = FALSE;
+ gtk_widget_set_sensitive(
GTK_WIDGET(ws_gui_app->ws_gui_hildon_find_toolbar),
TRUE);
GTK_WIDGET(ws_gui_app->ws_gui_hildon_find_toolbar),
TRUE);
- gtk_widget_set_sensitive(
+ gtk_widget_set_sensitive(
GTK_WIDGET(ws_gui_app->ws_gui_menu->ws_gui_menu_search),
TRUE);
GTK_WIDGET(ws_gui_app->ws_gui_menu->ws_gui_menu_search),
TRUE);
+ gtk_widget_set_sensitive(
+ GTK_WIDGET(ws_gui_app->ws_gui_w_list->ws_gui_view),
+ TRUE);
_("ws_ni_bookmark_not_added"));
break;
}
_("ws_ni_bookmark_not_added"));
break;
}
case WS_DBUS_BOOKMARKS_REMOVED_FAIL:
{
gtk_infoprint(GTK_WINDOW(
case WS_DBUS_BOOKMARKS_REMOVED_FAIL:
{
gtk_infoprint(GTK_WINDOW(
ws_gui_app->caching_flag = TRUE;
ws_gui_app->caching_flag = TRUE;
- //hildon_banner_set_fraction(
- // HILDON_BANNER(ws_gui_app->ws_gui_banner_extracting),
- // 0.0);
gtk_widget_set_sensitive(
gtk_widget_set_sensitive(
- GTK_WIDGET(ws_gui_app->ws_gui_hildon_find_toolbar),
- FALSE);
+ GTK_WIDGET(ws_gui_app->ws_gui_hildon_find_toolbar),
+ FALSE);
gtk_widget_set_sensitive(
GTK_WIDGET(ws_gui_app->ws_gui_menu->ws_gui_menu_search),
FALSE);
gtk_widget_set_sensitive(
GTK_WIDGET(ws_gui_app->ws_gui_menu->ws_gui_menu_search),
FALSE);
if (strcmp(((gchar *)g_value_get_string (&value)), pattern) == 0)
{
if (strcmp(((gchar *)g_value_get_string (&value)), pattern) == 0)
{
- g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "\n\nTRAFIONO!!! za pierwszym razem: WYRAZY: %s = %s\n", (gchar *)g_value_get_string (&value), pattern);
-
gtk_tree_selection_select_iter(
ws_gui_app->ws_gui_w_list->ws_gui_selection,
&tmp_iter);
gtk_tree_selection_select_iter(
ws_gui_app->ws_gui_w_list->ws_gui_selection,
&tmp_iter);
{
while (gtk_tree_model_iter_next(GTK_TREE_MODEL(ws_gui_app->ws_gui_w_list->ws_gui_model), &tmp_iter) == TRUE && keep_searching == TRUE)
{
{
while (gtk_tree_model_iter_next(GTK_TREE_MODEL(ws_gui_app->ws_gui_w_list->ws_gui_model), &tmp_iter) == TRUE && keep_searching == TRUE)
{
- g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "\n\n(while) WYRAZY: %s = %s\n", (gchar *)g_value_get_string (&value), pattern);
-
gtk_tree_model_get_value(GTK_TREE_MODEL(
ws_gui_app->ws_gui_w_list->ws_gui_model),
&tmp_iter,
gtk_tree_model_get_value(GTK_TREE_MODEL(
ws_gui_app->ws_gui_w_list->ws_gui_model),
&tmp_iter,
{
gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL(
ws_gui_app->ws_gui_w_list->ws_gui_model),
{
gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL(
ws_gui_app->ws_gui_w_list->ws_gui_model),
- &tmp_iter,
- g_array_index(ws_gui_app->ws_gui_history_iter,
- gchar*,
- ws_gui_app->ws_gui_history_cur_pos));;
+ &tmp_iter,
+ g_array_index(
+ ws_gui_app->ws_gui_history_iter,
+ gchar*,
+ ws_gui_app->ws_gui_history_cur_pos));
gtk_tree_selection_select_iter(
ws_gui_app->ws_gui_w_list->ws_gui_selection,
&tmp_iter);
gtk_tree_selection_select_iter(
ws_gui_app->ws_gui_w_list->ws_gui_selection,
&tmp_iter);
-
- g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "\njestem pewna ze jestem tutaj\nTRAFIONO TRAFIONO TRAFIONO!!! %s = %s\n\n", (gchar *)g_value_get_string (&value), pattern);
-
keep_searching = FALSE;
}
keep_searching = FALSE;
}
g_array_index(ws_gui_app->ws_gui_history,
gchar*,
ws_gui_app->ws_gui_history_cur_pos));
g_array_index(ws_gui_app->ws_gui_history,
gchar*,
ws_gui_app->ws_gui_history_cur_pos));
- ws_gui_app->html_flag = FALSE;
+
+ ws_gui_app->html_flag = TRUE;
i);
tmp_iter = gtk_tree_model_get_string_from_iter (GTK_TREE_MODEL(ws_gui_app->ws_gui_w_list->ws_gui_model), &ws_gui_app->ws_gui_w_list->ws_gui_iter);
i);
tmp_iter = gtk_tree_model_get_string_from_iter (GTK_TREE_MODEL(ws_gui_app->ws_gui_w_list->ws_gui_model), &ws_gui_app->ws_gui_w_list->ws_gui_iter);
- if (previous_word != NULL && strcmp(previous_word, new_word) != 0)
+ if (previous_word != NULL &&
+ strcmp(previous_word, new_word) != 0)
i = 0;
ws_gui_app->ws_gui_history_cur_pos ++;
i = 0;
ws_gui_app->ws_gui_history_cur_pos ++;
if (ws_gui_app->bookmark_mode == FALSE)
{
if (ws_gui_app->bookmark_mode == FALSE)
{
- tmp_last_searched = g_strdup(ws_gui_app->last_searched);
+ tmp_last_searched = g_strdup(ws_gui_app->last_searched);
-
- ws_gui_app->ws_gui_w_list->path = gtk_tree_model_get_path(GTK_TREE_MODEL(ws_gui_app->ws_gui_w_list->ws_gui_model), &ws_gui_app->ws_gui_w_list->ws_gui_iter);
ws_gui_check_history(ws_gui_app);
}
ws_gui_check_history(ws_gui_app);
}
{
ws_dbus_client_find_translation(ws_gui_app->dbus_data, string);
{
ws_dbus_client_find_translation(ws_gui_app->dbus_data, string);
ws_gui_app->ws_gui_w_list->ws_gui_view =
create_view_and_model(array_tmp, ws_gui_app);
ws_gui_app->ws_gui_w_list->ws_gui_view =
create_view_and_model(array_tmp, ws_gui_app);
- ws_gui_app->ws_gui_w_list->path = gtk_tree_path_new();
gtk_widget_show_all(GTK_WIDGET(ws_gui_app->ws_gui_w_list->ws_gui_view));
gtk_widget_show_all(GTK_WIDGET(ws_gui_app->ws_gui_w_list->ws_gui_view));