diff options
Diffstat (limited to 'src/gui/panels/panel.c')
-rw-r--r-- | src/gui/panels/panel.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/gui/panels/panel.c b/src/gui/panels/panel.c index 71fa155..ee0c102 100644 --- a/src/gui/panels/panel.c +++ b/src/gui/panels/panel.c @@ -31,6 +31,7 @@ #include "panel-int.h" #include "../../common/extstr.h" +#include "../../core/params.h" #include "../../gtkext/gtkdockable-int.h" @@ -406,6 +407,35 @@ const char *gtk_panel_item_get_path(const GPanelItem *item) } +/****************************************************************************** +* * +* Paramètres : item = instance GTK à consulter. * +* path = nouvelle emplacement d'inclusion. * +* * +* Description : Définit le chemin d'accès à utiliser pour les encapsulations.* +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +void gtk_panel_item_set_path(GPanelItem *item, const char *path) +{ + char *key; /* Clef d'accès à un paramètre */ + + free(item->path); + + item->path = strdup(path); + + key = gtk_panel_item_build_configuration_key(item, "path"); + + g_generic_config_set_value(get_main_configuration(), key, item->path); + + free(key); + +} + /****************************************************************************** * * @@ -462,7 +492,16 @@ void g_panel_item_dock(GPanelItem *item) void g_panel_item_set_dock_status(GPanelItem *item, bool status) { + char *key; /* Clef d'accès à un paramètre */ + item->docked = status; + item->dock_at_startup = status; + + key = gtk_panel_item_build_configuration_key(item, "dock_at_startup"); + + g_generic_config_set_value(get_main_configuration(), key, item->dock_at_startup); + + free(key); } |