[gnome-commander/NoLibGnomeUi] Remove usage of libgnomeui in test-plugin
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/NoLibGnomeUi] Remove usage of libgnomeui in test-plugin
- Date: Sun, 1 Mar 2020 21:24:02 +0000 (UTC)
commit 5f896b0a516d9a331efffd6e99e538769fb12839
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sun Mar 1 22:23:15 2020 +0100
Remove usage of libgnomeui in test-plugin
plugins/test/test-plugin.cc | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/plugins/test/test-plugin.cc b/plugins/test/test-plugin.cc
index e21f6c45..141102f2 100644
--- a/plugins/test/test-plugin.cc
+++ b/plugins/test/test-plugin.cc
@@ -21,7 +21,6 @@
#include <config.h>
#include <gtk/gtk.h>
-#include <libgnomeui/gnome-dialog-util.h>
#include <libgcmd/libgcmd.h>
#include "test-plugin.h"
#include "test-plugin.xpm"
@@ -31,7 +30,6 @@
#define AUTHOR "Marcus Bjurman <marbj499 student liu se>"
#define WEBPAGE "http://gcmd.github.io"
-
static PluginInfo plugin_nfo = {
GNOME_CMD_PLUGIN_SYSTEM_CURRENT_VERSION,
NAME,
@@ -56,7 +54,13 @@ static GnomeCmdPluginClass *parent_class = NULL;
static void on_dummy (GtkMenuItem *item, gpointer data)
{
- gnome_ok_dialog ("Test plugin dummy operation");
+ GtkWidget* dialog = gtk_message_dialog_new (nullptr,
+ GTK_DIALOG_MODAL,
+ GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_CLOSE,
+ "Test plugin dummy operation");
+ gtk_dialog_run (GTK_DIALOG (dialog));
+ gtk_widget_destroy (dialog);
}
@@ -129,12 +133,16 @@ static void update_main_menu_state (GnomeCmdPlugin *plugin, GnomeCmdState *state
static void configure (GnomeCmdPlugin *plugin)
{
- gnome_ok_dialog ("Test plugin configuration dialog");
+ GtkWidget* dialog = gtk_message_dialog_new (nullptr,
+ GTK_DIALOG_MODAL,
+ GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_CLOSE,
+ "Test plugin configuration dialog");
+ gtk_dialog_run (GTK_DIALOG (dialog));
+ gtk_widget_destroy (dialog);
}
-
-
/*******************************
* Gtk class implementation
*******************************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]