aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-autocompletion.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-23 17:57:21 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-23 17:57:21 +0800
commit6742f4d2c168a13221adb054520efc7390fe88dc (patch)
tree2115bff277ead194716f1a654e6d6019d6f9d79a /lib/ephy-autocompletion.c
parent01b26909a89f11ea190a312ad0100b5254c97651 (diff)
downloadgsoc2013-epiphany-6742f4d2c168a13221adb054520efc7390fe88dc.tar
gsoc2013-epiphany-6742f4d2c168a13221adb054520efc7390fe88dc.tar.gz
gsoc2013-epiphany-6742f4d2c168a13221adb054520efc7390fe88dc.tar.bz2
gsoc2013-epiphany-6742f4d2c168a13221adb054520efc7390fe88dc.tar.lz
gsoc2013-epiphany-6742f4d2c168a13221adb054520efc7390fe88dc.tar.xz
gsoc2013-epiphany-6742f4d2c168a13221adb054520efc7390fe88dc.tar.zst
gsoc2013-epiphany-6742f4d2c168a13221adb054520efc7390fe88dc.zip
Remove some unused headers.
2003-06-23 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/GlobalHistory.cpp: Remove some unused headers. * embed/mozilla/mozilla-embed.cpp: Dont asser when trying to print blank page. * lib/Makefile.am: * lib/ephy-autocompletion.c: (ephy_autocompletion_get_type): * lib/widgets/ephy-autocompletion-window.c: (ephy_autocompletion_window_get_type): * lib/widgets/ephy-location-entry.c: (ephy_location_entry_get_type): * src/ephy-encoding-menu.c: (ephy_encoding_menu_get_type): Get rid of the gobject macros. * src/ephy-notebook.c: (move_tab), (move_tab_to_another_notebook), (button_release_cb), (update_tabs_visibility), (tabs_visibility_notifier), (ephy_notebook_init), (ephy_notebook_finalize), (ephy_notebook_set_show_tabs): * src/ephy-notebook.h: * src/ephy-tabs-menu.c: * src/ephy-window.c: (ephy_window_finalize), (update_embed_dialogs), (ephy_window_get_find_dialog), (print_dialog_preview_cb), (ephy_window_print): * src/ephy-window.h: * src/ppview-toolbar.c: (toolbar_cmd_ppv_close): * src/window-commands.c: (window_cmd_file_print): Make sure tabs are hidden when going in print preview mode. Make print dialog transient.
Diffstat (limited to 'lib/ephy-autocompletion.c')
-rw-r--r--lib/ephy-autocompletion.c32
1 files changed, 26 insertions, 6 deletions
diff --git a/lib/ephy-autocompletion.c b/lib/ephy-autocompletion.c
index 6744512b4..db7bfc70a 100644
--- a/lib/ephy-autocompletion.c
+++ b/lib/ephy-autocompletion.c
@@ -20,7 +20,6 @@
#include <stdlib.h>
#include "ephy-autocompletion.h"
-#include "ephy-gobject-misc.h"
#include "ephy-marshal.h"
#include "ephy-debug.h"
@@ -92,12 +91,33 @@ enum EphyAutocompletionSignalsEnum {
};
static gint EphyAutocompletionSignals[EPHY_AUTOCOMPLETION_LAST_SIGNAL];
-/**
- * Autocompletion object
- */
+GType
+ephy_autocompletion_get_type (void)
+{
+ static GType ephy_autocompletion_type = 0;
+
+ if (ephy_autocompletion_type == 0)
+ {
+ static const GTypeInfo our_info =
+ {
+ sizeof (EphyAutocompletionClass),
+ NULL,
+ NULL,
+ (GClassInitFunc) ephy_autocompletion_class_init,
+ NULL,
+ NULL,
+ sizeof (EphyAutocompletion),
+ 0,
+ (GInstanceInitFunc) ephy_autocompletion_init
+ };
+
+ ephy_autocompletion_type = g_type_register_static (G_TYPE_OBJECT,
+ "EphyAutocompletion",
+ &our_info, 0);
+ }
-MAKE_GET_TYPE (ephy_autocompletion, "EphyAutocompletion", EphyAutocompletion,
- ephy_autocompletion_class_init, ephy_autocompletion_init, G_TYPE_OBJECT);
+ return ephy_autocompletion_type;
+}
static void
ephy_autocompletion_class_init (EphyAutocompletionClass *klass)