summaryrefslogtreecommitdiff
path: root/sensors-applet/sensor-config-dialog.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-06 20:38:55 +0200
committerinfirit <[email protected]>2015-07-07 01:19:55 +0200
commite85b0f646c3e5713ab18a59f223edf87199afb0c (patch)
treecc84ca87fd166882ad4f431e7fe760b8721ee20b /sensors-applet/sensor-config-dialog.c
parent3aaa999053462f255aca40300042c209b47aca65 (diff)
downloadmate-sensors-applet-e85b0f646c3e5713ab18a59f223edf87199afb0c.tar.bz2
mate-sensors-applet-e85b0f646c3e5713ab18a59f223edf87199afb0c.tar.xz
Use content_area variable
Instead of calling gtk_dialog_get_content_area multiple times. Taken from gnome-sensors-applet, commit: 840aa67ae36ae36b7b8c74b4cd7511f96328982f From: Lucian Langa <[email protected]>
Diffstat (limited to 'sensors-applet/sensor-config-dialog.c')
-rw-r--r--sensors-applet/sensor-config-dialog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sensors-applet/sensor-config-dialog.c b/sensors-applet/sensor-config-dialog.c
index cc09305..bb76da6 100644
--- a/sensors-applet/sensor-config-dialog.c
+++ b/sensors-applet/sensor-config-dialog.c
@@ -323,6 +323,7 @@ static void sensor_config_dialog_graph_color_set(GtkColorButton *color_button,
GtkTreeModel *model;
GtkTreePath *path;
GtkTreeIter iter;
+ GtkWidget *content_area;
GdkColor color;
gchar *color_string;
@@ -352,6 +353,7 @@ static void sensor_config_dialog_graph_color_set(GtkColorButton *color_button,
void sensor_config_dialog_create(SensorsApplet *sensors_applet) {
GtkTreeModel *model;
GtkTreeIter iter;
+ GtkWidget *content_area;
SensorConfigDialog *config_dialog;
@@ -912,7 +914,8 @@ void sensor_config_dialog_create(SensorsApplet *sensors_applet) {
2, 3,
14, 15);
- gtk_box_pack_start(GTK_BOX(gtk_dialog_get_content_area (GTK_DIALOG(config_dialog->dialog))), GTK_WIDGET(config_dialog->table), TRUE, TRUE, 0);
+ content_area = gtk_dialog_get_content_area (GTK_DIALOG(config_dialog->dialog));
+ gtk_box_pack_start(GTK_BOX(content_area), GTK_WIDGET(config_dialog->table), FALSE, FALSE, 0);
gtk_widget_show_all(config_dialog->dialog);
}