diff options
Diffstat (limited to 'multiload')
-rw-r--r-- | multiload/global.h | 2 | ||||
-rw-r--r-- | multiload/load-graph.c | 17 |
2 files changed, 4 insertions, 15 deletions
diff --git a/multiload/global.h b/multiload/global.h index c22bddad..da3383c4 100644 --- a/multiload/global.h +++ b/multiload/global.h @@ -92,8 +92,6 @@ struct _LoadGraph { cairo_surface_t *surface; int timer_index; - gint show_frame; - gboolean visible; gboolean tooltip_update; const gchar *name; 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); |