aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/search
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-12-21 23:38:27 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-12-21 23:38:27 +0800
commit0b541dcac4ab95a4e6099c75c8ef1f55483bcdce (patch)
tree025b3e491b00a9115cdf3092246e47197c1ec15a /addressbook/gui/search
parent01f34bc9d7024efdb038b3881bf7650c9a5cd9dc (diff)
downloadgsoc2013-evolution-0b541dcac4ab95a4e6099c75c8ef1f55483bcdce.tar.gz
gsoc2013-evolution-0b541dcac4ab95a4e6099c75c8ef1f55483bcdce.tar.zst
gsoc2013-evolution-0b541dcac4ab95a4e6099c75c8ef1f55483bcdce.zip
convert to G_DEFINE_TYPE
2004-12-21 JP Rosevear <jpr@novell.com> * gui/search/e-addressbook-search-dialog.c: convert to G_DEFINE_TYPE * gui/widgets/gal-view-factory-minicard.c: ditto * gui/widgets/gal-view-factory-treeview.c: ditto svn path=/trunk/; revision=28162
Diffstat (limited to 'addressbook/gui/search')
-rw-r--r--addressbook/gui/search/e-addressbook-search-dialog.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/addressbook/gui/search/e-addressbook-search-dialog.c b/addressbook/gui/search/e-addressbook-search-dialog.c
index 857c7a666c..2c66a931e6 100644
--- a/addressbook/gui/search/e-addressbook-search-dialog.c
+++ b/addressbook/gui/search/e-addressbook-search-dialog.c
@@ -19,13 +19,14 @@
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <gtk/gtkbox.h>
#include <gtk/gtkentry.h>
#include <gtk/gtkstock.h>
#include <libgnome/gnome-i18n.h>
-#include "gal/util/e-util.h"
#include "e-addressbook-search-dialog.h"
@@ -34,16 +35,7 @@ static void eab_search_dialog_init (EABSearchDialog *widget
static void eab_search_dialog_class_init (EABSearchDialogClass *klass);
static void eab_search_dialog_dispose (GObject *object);
-static GtkDialog *parent_class = NULL;
-
-#define PARENT_TYPE GTK_TYPE_DIALOG
-
-E_MAKE_TYPE (eab_search_dialog,
- "EABSearchDialog",
- EABSearchDialog,
- eab_search_dialog_class_init,
- eab_search_dialog_init,
- PARENT_TYPE)
+G_DEFINE_TYPE (EABSearchDialog, eab_search_dialog, GTK_TYPE_DIALOG)
enum
{
@@ -113,8 +105,6 @@ eab_search_dialog_class_init (EABSearchDialogClass *klass)
object_class = (GObjectClass*) klass;
- parent_class = g_type_class_ref (PARENT_TYPE);
-
object_class->set_property = eab_search_dialog_set_property;
object_class->get_property = eab_search_dialog_get_property;
object_class->dispose = eab_search_dialog_dispose;
@@ -196,5 +186,5 @@ eab_search_dialog_dispose (GObject *object)
view = EAB_SEARCH_DIALOG (object);
- G_OBJECT_CLASS(parent_class)->dispose (object);
+ G_OBJECT_CLASS(eab_search_dialog_parent_class)->dispose (object);
}