summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/caja-application.c2
-rw-r--r--src/caja-location-bar.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/caja-application.c b/src/caja-application.c
index f469eccf..d3e90182 100644
--- a/src/caja-application.c
+++ b/src/caja-application.c
@@ -704,6 +704,8 @@ check_required_directories (CajaApplication *application)
#if ENABLE_LIBUNIQUE == (0)
gtk_application_add_window (GTK_APPLICATION (application),
GTK_WINDOW (dialog));
+#elif GTK_CHECK_VERSION (3, 0, 0)
+ caja_main_event_loop_register (GTK_WIDGET (dialog));
#else
caja_main_event_loop_register (GTK_OBJECT (dialog));
#endif
diff --git a/src/caja-location-bar.c b/src/caja-location-bar.c
index 57262bb9..6037761c 100644
--- a/src/caja-location-bar.c
+++ b/src/caja-location-bar.c
@@ -229,7 +229,7 @@ drag_data_received_callback (GtkWidget *widget,
for (i = 1; names[i] != NULL; ++i)
{
-#if GTK_CHECK_VERSION (3, 0, 0)
+#if ENABLE_LIBUNIQUE == (0)
new_window = caja_application_create_navigation_window (application, screen);
#else
new_window = caja_application_create_navigation_window (application, NULL, screen);