Don't use GTK_DIALOG_NO_SEPARATOR for gtk3
authorJulien Lavergne <julien.lavergne@gmail.com>
Sat, 11 Jun 2011 12:49:09 +0000 (14:49 +0200)
committerJulien Lavergne <julien.lavergne@gmail.com>
Sat, 11 Jun 2011 12:49:09 +0000 (14:49 +0200)
src/utils.c

index 0540797..2bffa7c 100644 (file)
@@ -58,7 +58,11 @@ gboolean show_progress_for_pid(GtkWindow* parent, const char* title, const char*
 {
     gint res;
     GtkWidget* dlg = gtk_dialog_new_with_buttons(title, parent,
+#if GTK_CHECK_VERSION(3, 0, 0)
+                            GTK_DIALOG_MODAL,
+#else
                             GTK_DIALOG_NO_SEPARATOR|GTK_DIALOG_MODAL,
+#endif
                             GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, NULL);
     GtkWidget* progress = gtk_progress_bar_new();
     GtkWidget* vbox = gtk_dialog_get_content_area(GTK_DIALOG(dlg));