summaryrefslogtreecommitdiff
path: root/multiload/load-graph.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-07-20 21:57:14 +0200
committerraveit65 <[email protected]>2020-08-29 14:14:55 +0200
commit9c3944b1f6a0c6a286befee814901dad29f52610 (patch)
tree97b9dab63ef21fd2c906eff03633a9f2543bf001 /multiload/load-graph.c
parentc9dd864cff1326c8867c57ef2df3835fd5e2e35e (diff)
downloadmate-applets-9c3944b1f6a0c6a286befee814901dad29f52610.tar.bz2
mate-applets-9c3944b1f6a0c6a286befee814901dad29f52610.tar.xz
multiload: Remove legacy variable 'show_frame'
Diffstat (limited to 'multiload/load-graph.c')
-rw-r--r--multiload/load-graph.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/multiload/load-graph.c b/multiload/load-graph.c
index 583803f9..07a425f4 100644
--- a/multiload/load-graph.c
+++ b/multiload/load-graph.c
@@ -415,7 +415,6 @@ load_graph_new (MultiloadApplet *ma, guint n, const gchar *label,
g->size = MAX (size, 10);
g->pixel_size = mate_panel_applet_get_size (ma->applet);
g->tooltip_update = FALSE;
- g->show_frame = TRUE;
g->multiload = ma;
g->main_widget = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
@@ -441,18 +440,10 @@ load_graph_new (MultiloadApplet *ma, guint n, const gchar *label,
g_assert_not_reached ();
}
- if (g->show_frame)
- {
- g->frame = gtk_frame_new (NULL);
- gtk_frame_set_shadow_type (GTK_FRAME (g->frame), GTK_SHADOW_IN);
- gtk_container_add (GTK_CONTAINER (g->frame), g->box);
- gtk_box_pack_start (GTK_BOX (g->main_widget), g->frame, TRUE, TRUE, 0);
- }
- else
- {
- g->frame = NULL;
- gtk_box_pack_start (GTK_BOX (g->main_widget), g->box, TRUE, TRUE, 0);
- }
+ g->frame = gtk_frame_new (NULL);
+ gtk_frame_set_shadow_type (GTK_FRAME (g->frame), GTK_SHADOW_IN);
+ gtk_container_add (GTK_CONTAINER (g->frame), g->box);
+ gtk_box_pack_start (GTK_BOX (g->main_widget), g->frame, TRUE, TRUE, 0);
load_graph_load_config (g);