summaryrefslogtreecommitdiff
path: root/src/gui/panels
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/panels')
-rw-r--r--src/gui/panels/bookmarks.c1
-rw-r--r--src/gui/panels/panel-int.h1
-rw-r--r--src/gui/panels/panel.c31
-rw-r--r--src/gui/panels/strings.c1
4 files changed, 0 insertions, 34 deletions
diff --git a/src/gui/panels/bookmarks.c b/src/gui/panels/bookmarks.c
index 91301bc..c141ff3 100644
--- a/src/gui/panels/bookmarks.c
+++ b/src/gui/panels/bookmarks.c
@@ -215,7 +215,6 @@ static void g_bookmarks_panel_class_init(GBookmarksPanelClass *klass)
panel = G_PANEL_ITEM_CLASS(klass);
panel->can_search = true;
- panel->can_be_closed = true;
panel->update_filtered = (update_filtered_fc)update_filtered_bookmarks;
diff --git a/src/gui/panels/panel-int.h b/src/gui/panels/panel-int.h
index a8326ad..07aafc1 100644
--- a/src/gui/panels/panel-int.h
+++ b/src/gui/panels/panel-int.h
@@ -99,7 +99,6 @@ struct _GPanelItemClass
const char *bindings; /* Raccourci clavier éventuel */
bool can_search; /* Contenu fouillable ? */
- bool can_be_closed; /* Fermeture possible ? */
ack_dock_process_fc ack_dock; /* Prise en compte d'accroche */
ack_undock_process_fc ack_undock; /* Prise en compte de décroche */
diff --git a/src/gui/panels/panel.c b/src/gui/panels/panel.c
index 164fca7..e359962 100644
--- a/src/gui/panels/panel.c
+++ b/src/gui/panels/panel.c
@@ -57,9 +57,6 @@ static void g_panel_item_finalize(GPanelItem *);
/* Détermine si un panneau peut être filtré. */
static bool gtk_panel_item_can_search(const GPanelItem *);
-/* Détermine si un panneau peut être fermé. */
-static bool gtk_panel_item_can_be_closed(const GPanelItem *);
-
/* Fournit le nom court du composant encapsulable. */
static const char *gtk_panel_item_get_name(const GPanelItem *);
@@ -133,7 +130,6 @@ static void g_panel_item_class_init(GPanelItemClass *klass)
G_TYPE_NONE, 0);
klass->can_search = false;
- klass->can_be_closed = false;
}
@@ -178,7 +174,6 @@ static void g_panel_item_init(GPanelItem *item)
static void g_panel_item_dockable_interface_init(GtkDockableInterface *iface)
{
iface->can_search = (can_dockable_search_fc)gtk_panel_item_can_search;
- iface->can_be_closed = (can_dockable_search_fc)gtk_panel_item_can_be_closed;
iface->get_name = (get_dockable_name_fc)gtk_panel_item_get_name;
iface->get_desc = (get_dockable_desc_fc)gtk_panel_item_get_desc;
iface->get_widget = (get_dockable_widget_fc)gtk_panel_item_get_widget;
@@ -371,32 +366,6 @@ static bool gtk_panel_item_can_search(const GPanelItem *item)
* *
* Paramètres : item = instance GTK dont l'interface est à consulter. *
* *
-* Description : Détermine si un panneau peut être fermé. *
-* *
-* Retour : Bilan de la consultation. *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-static bool gtk_panel_item_can_be_closed(const GPanelItem *item)
-{
- bool result; /* Indication à retourner */
- GPanelItemClass *class; /* Classe de l'élément visé */
-
- class = G_PANEL_ITEM_GET_CLASS(item);
-
- result = class->can_be_closed;
-
- return result;
-
-}
-
-
-/******************************************************************************
-* *
-* Paramètres : item = instance GTK dont l'interface est à consulter. *
-* *
* Description : Fournit le nom court du composant encapsulable. *
* *
* Retour : Désignation humaine pour titre d'onglet ou de fenêtre. *
diff --git a/src/gui/panels/strings.c b/src/gui/panels/strings.c
index 8814c0b..048fa28 100644
--- a/src/gui/panels/strings.c
+++ b/src/gui/panels/strings.c
@@ -259,7 +259,6 @@ static void g_strings_panel_class_init(GStringsPanelClass *klass)
panel->bindings = "<Shift>F12";
panel->can_search = true;
- panel->can_be_closed = true;
panel->update_filtered = (update_filtered_fc)update_filtered_strings;