summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-11-21 22:28:15 +0300
committermonsta <[email protected]>2016-11-21 22:28:15 +0300
commit9a94231819bbfaf23e477dc27c3966903ebdf1e1 (patch)
tree643b864764f69ce556ceeac785a2ed6e6f7c44d2 /src/main.c
parente85aca3ba0c5f59b12fd557285cc74dbbb8bf909 (diff)
downloadeom-9a94231819bbfaf23e477dc27c3966903ebdf1e1.tar.bz2
eom-9a94231819bbfaf23e477dc27c3966903ebdf1e1.tar.xz
move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option
and require libmate-desktop >= 1.17
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/main.c b/src/main.c
index f1b92f7..6638054 100644
--- a/src/main.c
+++ b/src/main.c
@@ -50,9 +50,7 @@
#include <exempi/xmp.h>
#endif
-#if GTK_CHECK_VERSION (3, 0, 0)
#define EOM_CSS_FILE_PATH EOM_DATA_DIR G_DIR_SEPARATOR_S "eom.css"
-#endif
static EomStartupFlags flags;
@@ -191,18 +189,12 @@ main (int argc, char **argv)
{
GError *error = NULL;
GOptionContext *ctx;
-#if GTK_CHECK_VERSION (3, 0, 0)
GtkCssProvider *provider;
-#endif
bindtextdomain (GETTEXT_PACKAGE, EOM_LOCALE_DIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
-#if !GTK_CHECK_VERSION (3, 0, 0)
- gtk_rc_parse (EOM_DATA_DIR G_DIR_SEPARATOR_S "gtkrc");
-#endif
-
ctx = g_option_context_new (NULL);
g_option_context_add_main_entries (ctx, goption_options, PACKAGE);
/* Option groups are free'd together with the context
@@ -247,7 +239,6 @@ main (int argc, char **argv)
eom_job_queue_init ();
eom_thumbnail_init ();
-#if GTK_CHECK_VERSION (3, 0, 0)
/* Load special style properties for EomThumbView's scrollbar */
provider = gtk_css_provider_new ();
if (G_UNLIKELY (!gtk_css_provider_load_from_path(provider,
@@ -263,7 +254,6 @@ main (int argc, char **argv)
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
}
g_object_unref (provider);
-#endif
eom_plugin_engine_init ();
@@ -276,16 +266,8 @@ main (int argc, char **argv)
load_files ();
-#if !GTK_CHECK_VERSION (3, 0, 0)
- gdk_threads_enter ();
-#endif
-
gtk_main ();
-#if !GTK_CHECK_VERSION (3, 0, 0)
- gdk_threads_leave ();
-#endif
-
if (startup_files)
g_strfreev (startup_files);