summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-17 03:32:20 +0200
committerinfirit <[email protected]>2014-05-17 03:33:34 +0200
commit6bc8dd36781c37149b686e8b90e566f0512a998b (patch)
tree1b839df6b23d0b317335c496cb4637dc098503c3
parentf26a32428c48899db7164858b44e252e0e037c7a (diff)
downloadengrampa-6bc8dd36781c37149b686e8b90e566f0512a998b.tar.bz2
engrampa-6bc8dd36781c37149b686e8b90e566f0512a998b.tar.xz
Drop support for gtk+ < 2.24
-rw-r--r--copy-n-paste/eggdesktopfile.c8
-rw-r--r--src/fr-window.c15
2 files changed, 0 insertions, 23 deletions
diff --git a/copy-n-paste/eggdesktopfile.c b/copy-n-paste/eggdesktopfile.c
index 23bf7ab..a380787 100644
--- a/copy-n-paste/eggdesktopfile.c
+++ b/copy-n-paste/eggdesktopfile.c
@@ -911,7 +911,6 @@ parse_link (EggDesktopFile *desktop_file,
return TRUE;
}
-#if GTK_CHECK_VERSION (2, 12, 0)
static char *
start_startup_notification (GdkDisplay *display,
EggDesktopFile *desktop_file,
@@ -1022,7 +1021,6 @@ set_startup_notification_timeout (GdkDisplay *display,
g_timeout_add_seconds (EGG_DESKTOP_FILE_SN_TIMEOUT_LENGTH,
startup_notification_timeout, sn_data);
}
-#endif /* GTK 2.12 */
static GPtrArray *
array_putenv (GPtrArray *env, char *variable)
@@ -1209,7 +1207,6 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file,
}
g_free (command);
-#if GTK_CHECK_VERSION (2, 12, 0)
startup_id = start_startup_notification (display, desktop_file,
argv[0], screen_num,
workspace, launch_time);
@@ -1220,9 +1217,6 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file,
env = array_putenv (env, startup_id_env);
g_free (startup_id_env);
}
-#else
- startup_id = NULL;
-#endif /* GTK 2.12 */
if (env != NULL)
g_ptr_array_add (env, NULL);
@@ -1240,7 +1234,6 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file,
if (startup_id)
{
-#if GTK_CHECK_VERSION (2, 12, 0)
if (current_success)
{
set_startup_notification_timeout (display, startup_id);
@@ -1251,7 +1244,6 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file,
g_free (startup_id);
}
else
-#endif /* GTK 2.12 */
g_free (startup_id);
}
else if (ret_startup_id)
diff --git a/src/fr-window.c b/src/fr-window.c
index b488b88..d45a21c 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -2511,9 +2511,6 @@ create_the_progress_dialog (FrWindow *window)
window->priv->pd_cancel_button = gtk_dialog_add_button (GTK_DIALOG (window->priv->progress_dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
d = GTK_DIALOG (window->priv->progress_dialog);
-#if !GTK_CHECK_VERSION(2,22,0)
- gtk_dialog_set_has_separator (d, FALSE);
-#endif
gtk_window_set_resizable (GTK_WINDOW (d), TRUE);
gtk_dialog_set_default_response (GTK_DIALOG (d), GTK_RESPONSE_OK);
gtk_window_set_default_size (GTK_WINDOW (d), PROGRESS_DIALOG_DEFAULT_WIDTH, -1);
@@ -5930,19 +5927,10 @@ fr_window_construct (FrWindow *window)
window->priv->progress_cid = gtk_statusbar_get_context_id (GTK_STATUSBAR (window->priv->statusbar), "progress");
statusbar = GTK_STATUSBAR (window->priv->statusbar);
-#if GTK_CHECK_VERSION (2, 19, 1)
statusbar_box = gtk_statusbar_get_message_area (statusbar);
gtk_box_set_homogeneous (GTK_BOX (statusbar_box), FALSE);
gtk_box_set_spacing (GTK_BOX (statusbar_box), 4);
gtk_box_set_child_packing (GTK_BOX (statusbar_box), gtk_statusbar_get_message_area (statusbar), TRUE, TRUE, 0, GTK_PACK_START );
-#else
- statusbar_box = gtk_hbox_new (FALSE, 4);
- g_object_ref (statusbar->label);
- gtk_container_remove (GTK_CONTAINER (statusbar->frame), statusbar->label);
- gtk_box_pack_start (GTK_BOX (statusbar_box), statusbar->label, TRUE, TRUE, 0);
- g_object_unref (statusbar->label);
- gtk_container_add (GTK_CONTAINER (statusbar->frame), statusbar_box);
-#endif
window->priv->progress_bar = gtk_progress_bar_new ();
gtk_progress_bar_set_pulse_step (GTK_PROGRESS_BAR (window->priv->progress_bar), ACTIVITY_PULSE_STEP);
@@ -7088,9 +7076,6 @@ fr_window_view_last_output (FrWindow *window,
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
-#if !GTK_CHECK_VERSION(2,22,0)
- gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
-#endif
gtk_container_set_border_width (GTK_CONTAINER (dialog), 6);
gtk_container_set_border_width (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), 6);
gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), 8);