summaryrefslogtreecommitdiff
path: root/src/gui/panels/panel.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-03-11 23:55:50 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-03-11 23:55:50 (GMT)
commit491e9837f33831f94747a6063f709ba2c5d2703e (patch)
tree5878c875e308307849d75e85140ef1e71c94b7d4 /src/gui/panels/panel.c
parentdc8a2b19dbb32bfe49b1ff6640cc609238b392ca (diff)
Handled user actions on the dock station buttons.
Diffstat (limited to 'src/gui/panels/panel.c')
-rw-r--r--src/gui/panels/panel.c39
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);
}