summaryrefslogtreecommitdiff
path: root/applets/clock
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-16 17:31:42 +0200
committerinfirit <[email protected]>2014-05-16 18:03:52 +0200
commite45b1b7953ca9e636c5e7c4cd1797fe4710861d3 (patch)
treeb343bf5cdbc79fdfc63827833d21d4fa58213766 /applets/clock
parentf743caf3054bbbadc6b98c9e746fd8ae5114b142 (diff)
downloadmate-panel-e45b1b7953ca9e636c5e7c4cd1797fe4710861d3.tar.bz2
mate-panel-e45b1b7953ca9e636c5e7c4cd1797fe4710861d3.tar.xz
Use gtk_list_store_insert_with_values also for gtk2
It was introduced in gtk+-2.6.
Diffstat (limited to 'applets/clock')
-rw-r--r--applets/clock/clock.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c
index 4592698e..246bf249 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -2960,9 +2960,7 @@ fill_prefs_window (ClockData *cd)
GtkCellRenderer *renderer;
GtkTreeViewColumn *col;
GtkListStore *store;
-#if GTK_CHECK_VERSION (3, 0, 0)
GtkTreeIter iter;
-#endif
int i;
/* Set the 12 hour / 24 hour widget */
@@ -3025,14 +3023,9 @@ fill_prefs_window (ClockData *cd)
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (widget), renderer, "text", 0, NULL);
for (i = 0; temperatures[i] != -1; i++)
-#if GTK_CHECK_VERSION (3, 0, 0)
gtk_list_store_insert_with_values (store, &iter, -1,
0, mateweather_prefs_get_temp_display_name (temperatures[i]),
-1);
-#else
- gtk_combo_box_append_text (GTK_COMBO_BOX (widget),
- mateweather_prefs_get_temp_display_name (temperatures[i]));
-#endif
if (cd->temperature_unit > 0)
gtk_combo_box_set_active (GTK_COMBO_BOX (widget),
@@ -3049,14 +3042,9 @@ fill_prefs_window (ClockData *cd)
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (widget), renderer, "text", 0, NULL);
for (i = 0; speeds[i] != -1; i++)
-#if GTK_CHECK_VERSION (3, 0, 0)
gtk_list_store_insert_with_values (store, &iter, -1,
0, mateweather_prefs_get_speed_display_name (speeds[i]),
-1);
-#else
- gtk_combo_box_append_text (GTK_COMBO_BOX (widget),
- mateweather_prefs_get_speed_display_name (speeds[i]));
-#endif
if (cd->speed_unit > 0)
gtk_combo_box_set_active (GTK_COMBO_BOX (widget),