From 6742f4d2c168a13221adb054520efc7390fe88dc Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 23 Jun 2003 09:57:21 +0000 Subject: Remove some unused headers. 2003-06-23 Marco Pesenti Gritti * 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. --- lib/widgets/ephy-location-entry.c | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) (limited to 'lib/widgets/ephy-location-entry.c') diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index 94c696ba8..9488c7c11 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -19,7 +19,6 @@ #include "ephy-location-entry.h" #include "ephy-autocompletion-window.h" #include "ephy-marshal.h" -#include "ephy-gobject-misc.h" #include "eel-gconf-extensions.h" #include "ephy-prefs.h" #include "ephy-debug.h" @@ -109,13 +108,33 @@ enum EphyLocationEntrySignalsEnum { }; static gint EphyLocationEntrySignals[LAST_SIGNAL]; -/** - * EphyLocationEntry object - */ +GType +ephy_location_entry_get_type (void) +{ + static GType ephy_location_entry_type = 0; + + if (ephy_location_entry_type == 0) + { + static const GTypeInfo our_info = + { + sizeof (EphyLocationEntryClass), + NULL, + NULL, + (GClassInitFunc) ephy_location_entry_class_init, + NULL, + NULL, + sizeof (EphyLocationEntry), + 0, + (GInstanceInitFunc) ephy_location_entry_init + }; + + ephy_location_entry_type = g_type_register_static (GTK_TYPE_HBOX, + "EphyLocationEntry", + &our_info, 0); + } -MAKE_GET_TYPE (ephy_location_entry, "EphyLocationEntry", EphyLocationEntry, - ephy_location_entry_class_init, - ephy_location_entry_init, GTK_TYPE_HBOX); + return ephy_location_entry_type; +} static void ephy_location_entry_class_init (EphyLocationEntryClass *klass) -- cgit v1.2.3