aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-21 16:21:31 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-28 11:19:35 (GMT)
commit182906534797a0a75daa417258cb99678c79cc4a (patch)
tree4c0a1374896cce9bdbdf022375d258e7fa5b6960
parent3dcb952d2c392d5656ccba48ab7eb125b3d75917 (diff)
support: use Gtk dialog instead of the gnome one
There's no good reason to use gnome-specific dialog message here. So, replace by the equivalent Gtk one. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--src/support.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/support.c b/src/support.c
index e12295f..e813300 100644
--- a/src/support.c
+++ b/src/support.c
@@ -5,7 +5,6 @@
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
-#include <gnome.h>
#include "callbacks.h"
#include "interface.h"
#include "support.h"
@@ -58,9 +57,13 @@ int error_dialog (char *message)
GtkWidget *dialog;
int test;
- dialog =
- gnome_message_box_new (message, GNOME_MESSAGE_BOX_ERROR,
- GNOME_STOCK_BUTTON_CLOSE, NULL);
- test = gnome_dialog_run (GNOME_DIALOG (dialog));
+ dialog = gtk_message_dialog_new(NULL,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_CLOSE,
+ "%s", message);
+
+ test = gtk_dialog_run (GTK_DIALOG (dialog));
+ gtk_widget_destroy (dialog);
return test;
}

Privacy Policy