aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2020-10-09 18:29:05 -0700
committerLeandro Pereira <leandro@hardinfo.org>2020-10-09 18:29:22 -0700
commite4fe32824ffca45c1fb1c408152094a3d4e486ef (patch)
treee993c556766237853eb91a13db94772c60601038 /shell
parent2180e3e38618f648093e3dfcdcd458d6aedad71e (diff)
Add stub to set title in GTK3 load graph
Diffstat (limited to 'shell')
-rw-r--r--shell/loadgraph-uber.c4
-rw-r--r--shell/loadgraph.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/shell/loadgraph-uber.c b/shell/loadgraph-uber.c
index 0ed9b463..736dc8d1 100644
--- a/shell/loadgraph-uber.c
+++ b/shell/loadgraph-uber.c
@@ -75,6 +75,10 @@ GtkWidget *load_graph_get_framed(LoadGraph * lg)
return NULL;
}
+void load_graph_set_title(LoadGraph * lg, const gchar *title)
+{
+}
+
void load_graph_clear(LoadGraph * lg)
{
int i;
diff --git a/shell/loadgraph.c b/shell/loadgraph.c
index cde0fa06..849382f6 100644
--- a/shell/loadgraph.c
+++ b/shell/loadgraph.c
@@ -89,13 +89,13 @@ gchar *load_graph_get_data_suffix(LoadGraph * lg)
return lg->suffix;
}
-void load_graph_set_title(LoadGraph * lg, gchar * title)
+void load_graph_set_title(LoadGraph * lg, const gchar * title)
{
g_free(lg->title);
lg->title = g_strdup(title);
}
-gchar *load_graph_get_title(LoadGraph *lg)
+const gchar *load_graph_get_title(LoadGraph *lg)
{
if (lg != NULL) return lg->title;
return NULL;