diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-03-08 21:31:56 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-03-08 21:31:56 (GMT) |
commit | e7ba901892df20045ff3a541b4fa34e36bd05bfb (patch) | |
tree | 4ef5307f7cbb39acc4b02419f4b15ef1801c8c0f /src/gui/panels/bookmarks.c | |
parent | 68bb7efaf61e4f5ca2f2cffce84995ffd667c4cc (diff) |
Listed all idenfied read only strings in a dedicated panel.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@483 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gui/panels/bookmarks.c')
-rw-r--r-- | src/gui/panels/bookmarks.c | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/src/gui/panels/bookmarks.c b/src/gui/panels/bookmarks.c index e9ab0d1..60daf67 100644 --- a/src/gui/panels/bookmarks.c +++ b/src/gui/panels/bookmarks.c @@ -38,9 +38,9 @@ #include "panel-int.h" #include "../../analysis/db/items/bookmark.h" -#include "../../core/params.h" #include "../../common/cpp.h" #include "../../common/extstr.h" +#include "../../core/params.h" #include "../../gtkext/easygtk.h" #include "../../gtkext/support.h" @@ -141,7 +141,7 @@ static void on_param_value_edited(GtkCellRendererText *, gchar *, gchar *, GtkTr /* Démarre l'actualisation du filtrage des paramètres. */ static void on_param_search_changed(GtkSearchEntry *, GBookmarksPanel *); -/*Détermine si un paramètre doit être filtré ou non. */ +/* Détermine si un paramètre doit être filtré ou non. */ static bool is_param_filtered(GBookmarksPanel *, const char *); @@ -153,7 +153,7 @@ static bool is_param_filtered(GBookmarksPanel *, const char *); static gboolean on_button_press_over_bookmarks(GtkWidget *, GdkEventButton *, GBookmarksPanel *); /* Construit le menu contextuel pour les signets. */ -GtkMenu *build_bookmarks_panel_menu(GBookmarksPanel *); +static GtkMenu *build_bookmarks_panel_menu(GBookmarksPanel *); /* Fournit le signet sélectionné dans la liste. */ static GDbBookmark *get_selected_panel_bookmark(GtkTreeView *, GtkTreeIter *); @@ -807,7 +807,7 @@ static gint compare_bookmarks_list_columns(GtkTreeModel *model, GtkTreeIter *a, result = (value_a == NULL ? -1 : 1); } else - result = g_utf8_collate(value_a,value_b); + result = g_utf8_collate(value_a, value_b); g_free(value_a); g_free(value_b); @@ -836,9 +836,6 @@ static gboolean on_key_pressed_over_params(GtkTreeView *treeview, GdkEventKey *e const gchar *accelerator; /* Combinaison de raccourci */ guint accel_key; /* Touche de raccourci */ GdkModifierType accel_mod; /* Modifiateurs attendus aussi */ - GtkTreeIter iter; /* Point de la sélection */ - GtkTreeModel *model; /* Gestionnaire de données */ - GtkTreePath *path; /* Chemin d'accès à ce point */ if (!g_generic_config_get_value(get_main_configuration(), MPK_KEYBINDINGS_EDIT, &accelerator)) return FALSE; @@ -849,22 +846,7 @@ static gboolean on_key_pressed_over_params(GtkTreeView *treeview, GdkEventKey *e gtk_accelerator_parse(accelerator, &accel_key, &accel_mod); if (event->keyval == accel_key && event->state == accel_mod) - { - /* FIXME : unref(result) */ - if (get_selected_panel_bookmark(treeview, &iter) != NULL) - { - model = gtk_tree_view_get_model(treeview); - path = gtk_tree_model_get_path(model, &iter); - - gtk_tree_view_set_cursor(treeview, path, - gtk_tree_view_get_column(treeview, BMC_COMMENT - BMC_PHYSICAL), - TRUE); - - gtk_tree_path_free(path); - - } - - } + mcb_bookmarks_panel_edit(NULL, panel); return FALSE; @@ -1112,7 +1094,7 @@ static gboolean on_button_press_over_bookmarks(GtkWidget *widget, GdkEventButton * * ******************************************************************************/ -GtkMenu *build_bookmarks_panel_menu(GBookmarksPanel *panel) +static GtkMenu *build_bookmarks_panel_menu(GBookmarksPanel *panel) { GtkWidget *result; /* Support à retourner */ GtkWidget *submenuitem; /* Sous-élément de menu */ |