[vinagre] Drop dummy private struct from PluginDialog
- From: Jonh Wendell <jwendell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre] Drop dummy private struct from PluginDialog
- Date: Sat, 4 Sep 2010 20:38:19 +0000 (UTC)
commit ba67ea3c8440fd9641e8d11f1dcd19ba8414dbe4
Author: Jonh Wendell <jwendell gnome org>
Date: Sat Sep 4 17:06:22 2010 -0300
Drop dummy private struct from PluginDialog
vinagre/vinagre-plugin-dialog.c | 13 -------------
vinagre/vinagre-plugin-dialog.h | 2 --
2 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/vinagre/vinagre-plugin-dialog.c b/vinagre/vinagre-plugin-dialog.c
index 785d9c3..56001b0 100644
--- a/vinagre/vinagre-plugin-dialog.c
+++ b/vinagre/vinagre-plugin-dialog.c
@@ -27,23 +27,11 @@
static GtkWidget *plugin_dialog = NULL;
-#define VINAGRE_PLUGIN_DIALOG_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), \
- VINAGRE_TYPE_PLUGIN_DIALOG, \
- VinagrePluginDialogPrivate))
-
-struct _VinagrePluginDialogPrivate
-{
- gint dummy;
-};
-
G_DEFINE_TYPE(VinagrePluginDialog, vinagre_plugin_dialog, GTK_TYPE_DIALOG)
static void
vinagre_plugin_dialog_class_init (VinagrePluginDialogClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- g_type_class_add_private (object_class, sizeof (VinagrePluginDialogPrivate));
}
static void
@@ -74,7 +62,6 @@ setup_plugins_page (VinagrePluginDialog *dlg)
static void
vinagre_plugin_dialog_init (VinagrePluginDialog *dlg)
{
- dlg->priv = VINAGRE_PLUGIN_DIALOG_GET_PRIVATE (dlg);
gtk_dialog_add_buttons (GTK_DIALOG (dlg),
GTK_STOCK_CLOSE,
GTK_RESPONSE_CLOSE,
diff --git a/vinagre/vinagre-plugin-dialog.h b/vinagre/vinagre-plugin-dialog.h
index ce8d05d..1622332 100644
--- a/vinagre/vinagre-plugin-dialog.h
+++ b/vinagre/vinagre-plugin-dialog.h
@@ -33,14 +33,12 @@ G_BEGIN_DECLS
#define VINAGRE_IS_PLUGIN_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VINAGRE_TYPE_PLUGIN_DIALOG))
#define VINAGRE_PLUGIN_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), VINAGRE_TYPE_PLUGIN_DIALOG, VinagrePluginDialogClass))
-typedef struct _VinagrePluginDialogPrivate VinagrePluginDialogPrivate;
typedef struct _VinagrePluginDialog VinagrePluginDialog;
typedef struct _VinagrePluginDialogClass VinagrePluginDialogClass;
struct _VinagrePluginDialog
{
GtkDialog dialog;
- VinagrePluginDialogPrivate *priv;
};
struct _VinagrePluginDialogClass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]