diff options
Diffstat (limited to 'src/gui/panels/bookmarks.c')
-rw-r--r-- | src/gui/panels/bookmarks.c | 51 |
1 files changed, 15 insertions, 36 deletions
diff --git a/src/gui/panels/bookmarks.c b/src/gui/panels/bookmarks.c index 9eaa1df..87789b6 100644 --- a/src/gui/panels/bookmarks.c +++ b/src/gui/panels/bookmarks.c @@ -245,8 +245,20 @@ static void g_bookmarks_panel_init(GBookmarksPanel *panel) GtkTreeSortable *sortable; /* Autre vision de la liste */ GtkTreeSelection *select; /* Sélection dans la liste */ + /* Eléments de base */ + base = G_EDITOR_ITEM(panel); + base->name = PANEL_BOOKMARKS_ID; + + pitem = G_PANEL_ITEM(panel); + + pitem->personality = PIP_SINGLETON; + pitem->lname = _("Bookmarks"); + pitem->path = "SE"; + + /* Représentation graphique */ + base->widget = gtk_scrolled_window_new(NULL, NULL); gtk_widget_show(base->widget); @@ -256,10 +268,6 @@ static void g_bookmarks_panel_init(GBookmarksPanel *panel) ref = G_OBJECT(base->widget); g_object_set_data(ref, "panel", panel); - pitem = G_PANEL_ITEM(panel); - - pitem->personality = PIP_SINGLETON; - /* Partie signets */ store = gtk_tree_store_new(BMC_COUNT, G_TYPE_OBJECT, @@ -409,7 +417,7 @@ static void g_bookmarks_panel_finalize(GBookmarksPanel *panel) /****************************************************************************** * * -* Paramètres : ref = espace de référencement global. * +* Paramètres : - * * * * Description : Crée un panneau d'affichage des paramètres de configuration. * * * @@ -419,15 +427,12 @@ static void g_bookmarks_panel_finalize(GBookmarksPanel *panel) * * ******************************************************************************/ -GEditorItem *g_bookmarks_panel_new(GObject *ref) +GPanelItem *g_bookmarks_panel_new(void) { - GEditorItem *result; /* Structure à retourner */ + GPanelItem *result; /* Structure à retourner */ result = g_object_new(G_TYPE_BOOKMARKS_PANEL, NULL); - g_panel_item_init_ext(G_PANEL_ITEM(result), ref, PANEL_BOOKMARKS_ID, - _("Bookmarks"), G_EDITOR_ITEM(result)->widget, "SE"); - //reload_config_into_treeview(G_BOOKMARKS_PANEL(result), get_main_configuration()); @@ -441,32 +446,6 @@ GEditorItem *g_bookmarks_panel_new(GObject *ref) } -/****************************************************************************** -* * -* Paramètres : ref = espace de référencement global. * -* * -* Description : Construit le panneau d'affichage des signets courants. * -* * -* Retour : Adresse du panneau mis en place. * -* * -* Remarques : - * -* * -******************************************************************************/ - -GPanelItem *create_bookmarks_panel(GObject *ref) -{ - GEditorItem *result; /* Elément réactif à renvoyer */ - - result = g_bookmarks_panel_new(ref); - - /* Enregistre correctement le tout */ - register_editor_item(result); - - return G_PANEL_ITEM(result); - -} - - /* ---------------------------------------------------------------------------------- */ /* AFFICHAGE A L'AIDE D'UNE LISTE */ |