Commit 612ee980 authored by Darin Adler's avatar Darin Adler

More GtkObject -> GObject stuff.

	* components/text/nautilus-text-view.c: (nautilus_text_view_init):
	* libnautilus/nautilus-view.c:
	* src/file-manager/fm-icon-view.c: (fm_icon_view_init):
	* src/file-manager/fm-properties-window.c:
	(append_directory_contents_fields),
	(append_special_execution_flags):
	* src/nautilus-application.c: (nautilus_application_startup),
	(nautilus_application_create_window):
	* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init):
	* src/nautilus-window-menus.c:
	(nautilus_window_initialize_bookmarks_menu),
	(nautilus_window_initialize_menus_part_1):
	* src/nautilus-window.c: (add_sidebar_panel_callback):
	More GtkObject -> GObject stuff.
parent c9109022
2001-11-03 Darin Adler <darin@bentspoon.com>
* components/text/nautilus-text-view.c: (nautilus_text_view_init):
* libnautilus/nautilus-view.c:
* src/file-manager/fm-icon-view.c: (fm_icon_view_init):
* src/file-manager/fm-properties-window.c:
(append_directory_contents_fields),
(append_special_execution_flags):
* src/nautilus-application.c: (nautilus_application_startup),
(nautilus_application_create_window):
* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init):
* src/nautilus-window-menus.c:
(nautilus_window_initialize_bookmarks_menu),
(nautilus_window_initialize_menus_part_1):
* src/nautilus-window.c: (add_sidebar_panel_callback):
More GtkObject -> GObject stuff.
2001-11-03 Darin Adler <darin@bentspoon.com>
* Many files.
......
......@@ -209,11 +209,11 @@ nautilus_text_view_init (NautilusTextView *text_view)
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_TEXT_VIEW_FONT,
font_changed_callback,
text_view,
GTK_OBJECT (text_view));
G_OBJECT (text_view));
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_TEXT_VIEW_STANDARD_FONT_SIZE,
font_changed_callback,
text_view,
GTK_OBJECT (text_view));
G_OBJECT (text_view));
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
......
......@@ -87,10 +87,10 @@ static void nautilus_view_init (NautilusView *view);
static void nautilus_view_destroy (GtkObject *object);
static void nautilus_view_class_init (NautilusViewClass *klass);
EEL_BONOBO_BOILERPLATE (NautilusView,
Nautilus_View,
nautilus_view,
BONOBO_OBJECT_TYPE)
EEL_BONOBO_BOILERPLATE_FULL (NautilusView,
Nautilus_View,
nautilus_view,
BONOBO_OBJECT_TYPE)
static void
queue_incoming_call (PortableServer_Servant servant,
......
......@@ -2770,35 +2770,35 @@ fm_icon_view_init (FMIconView *icon_view)
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_ICON_VIEW_FONT,
font_changed_callback,
icon_view,
GTK_OBJECT (icon_view));
G_OBJECT (icon_view));
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_ICON_VIEW_SMOOTH_FONT,
smooth_font_changed_callback,
icon_view,
GTK_OBJECT (icon_view));
G_OBJECT (icon_view));
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_ZOOM_LEVEL_FONT_SIZE,
default_zoom_level_font_size_changed_callback,
icon_view,
GTK_OBJECT (icon_view));
G_OBJECT (icon_view));
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_SORT_ORDER,
default_sort_order_changed_callback,
icon_view,
GTK_OBJECT (icon_view));
G_OBJECT (icon_view));
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_SORT_IN_REVERSE_ORDER,
default_sort_in_reverse_order_changed_callback,
icon_view,
GTK_OBJECT (icon_view));
G_OBJECT (icon_view));
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_USE_TIGHTER_LAYOUT,
default_use_tighter_layout_changed_callback,
icon_view,
GTK_OBJECT (icon_view));
G_OBJECT (icon_view));
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_USE_MANUAL_LAYOUT,
default_use_manual_layout_changed_callback,
icon_view,
GTK_OBJECT (icon_view));
G_OBJECT (icon_view));
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_ZOOM_LEVEL,
default_zoom_level_changed_callback,
icon_view,
GTK_OBJECT (icon_view));
G_OBJECT (icon_view));
icon_container = get_icon_container (icon_view);
gtk_signal_connect (GTK_OBJECT (icon_container),
......
......@@ -1377,7 +1377,7 @@ append_directory_contents_fields (FMPropertiesWindow *window,
(NAUTILUS_PREFERENCES_SHOW_DIRECTORY_ITEM_COUNTS,
update_visibility_of_item_count_fields_wrapper,
window,
GTK_OBJECT (window));
G_OBJECT (window));
return last_row;
}
......@@ -1996,7 +1996,7 @@ append_special_execution_flags (FMPropertiesWindow *window,
(NAUTILUS_PREFERENCES_SHOW_SPECIAL_FLAGS,
update_visibility_of_special_flags_widgets_wrapper,
window,
GTK_OBJECT (window));
G_OBJECT (window));
}
......
......@@ -565,16 +565,16 @@ nautilus_application_startup (NautilusApplication *application,
/* Monitor the preference to show or hide the desktop */
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_SHOW_DESKTOP,
desktop_changed_callback,
application,
GTK_OBJECT (application));
desktop_changed_callback,
application,
G_OBJECT (application));
/* Monitor the preference to have the desktop */
/* point to the Unix home folder */
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_DESKTOP_IS_HOME_DIR,
desktop_location_changed_callback,
NULL,
GTK_OBJECT (application));
desktop_location_changed_callback,
NULL,
G_OBJECT (application));
/* CORBA C mapping doesn't allow NULL to be passed
for string parameters */
......@@ -669,7 +669,7 @@ nautilus_application_create_window (NautilusApplication *application)
g_return_val_if_fail (NAUTILUS_IS_APPLICATION (application), NULL);
window = NAUTILUS_WINDOW (gtk_widget_new (nautilus_window_get_type (),
"app", GTK_OBJECT (application),
"app", G_OBJECT (application),
"app_id", "nautilus", NULL));
gtk_signal_connect (GTK_OBJECT (window),
......
......@@ -1162,9 +1162,9 @@ nautilus_window_initialize_bookmarks_menu (NautilusWindow *window)
* showing static bookmarks changes.
*/
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_HIDE_BUILT_IN_BOOKMARKS,
nautilus_window_bookmarks_preference_changed_callback,
window,
GTK_OBJECT (window));
nautilus_window_bookmarks_preference_changed_callback,
window,
G_OBJECT (window));
/* Recreate dynamic part of menu if bookmark list changes */
gtk_signal_connect_object_while_alive (GTK_OBJECT (get_bookmark_list ()),
......@@ -1323,7 +1323,7 @@ nautilus_window_initialize_menus_part_1 (NautilusWindow *window)
eel_preferences_add_callback_while_alive ("user_level",
user_level_changed_callback,
window,
GTK_OBJECT (window));
G_OBJECT (window));
/* Update the user level menu items for the first time */
user_level_changed_callback (window);
......
......@@ -208,7 +208,7 @@ add_sidebar_panel_callback (const char *name,
eel_preferences_add_callback_while_alive (preference_key,
sidebar_panels_changed_callback,
callback_data,
GTK_OBJECT (callback_data));
G_OBJECT (callback_data));
}
static void
......
......@@ -208,7 +208,7 @@ add_sidebar_panel_callback (const char *name,
eel_preferences_add_callback_while_alive (preference_key,
sidebar_panels_changed_callback,
callback_data,
GTK_OBJECT (callback_data));
G_OBJECT (callback_data));
}
static void
......
......@@ -242,18 +242,18 @@ nautilus_sidebar_title_init (NautilusSidebarTitle *sidebar_title)
update_all (sidebar_title);
#if GNOME2_CONVERSION_COMPLETE
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_DEFAULT_FONT,
non_smooth_font_changed_callback,
sidebar_title,
GTK_OBJECT (sidebar_title));
non_smooth_font_changed_callback,
sidebar_title,
G_OBJECT (sidebar_title));
#endif
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_DEFAULT_SMOOTH_FONT,
smooth_font_changed_callback,
sidebar_title,
GTK_OBJECT (sidebar_title));
smooth_font_changed_callback,
sidebar_title,
G_OBJECT (sidebar_title));
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_THEME,
nautilus_sidebar_title_theme_changed,
sidebar_title,
GTK_OBJECT (sidebar_title));
nautilus_sidebar_title_theme_changed,
sidebar_title,
G_OBJECT (sidebar_title));
/* initialize the label colors & fonts */
nautilus_sidebar_title_theme_changed (sidebar_title);
......
......@@ -208,7 +208,7 @@ add_sidebar_panel_callback (const char *name,
eel_preferences_add_callback_while_alive (preference_key,
sidebar_panels_changed_callback,
callback_data,
GTK_OBJECT (callback_data));
G_OBJECT (callback_data));
}
static void
......
......@@ -1162,9 +1162,9 @@ nautilus_window_initialize_bookmarks_menu (NautilusWindow *window)
* showing static bookmarks changes.
*/
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_HIDE_BUILT_IN_BOOKMARKS,
nautilus_window_bookmarks_preference_changed_callback,
window,
GTK_OBJECT (window));
nautilus_window_bookmarks_preference_changed_callback,
window,
G_OBJECT (window));
/* Recreate dynamic part of menu if bookmark list changes */
gtk_signal_connect_object_while_alive (GTK_OBJECT (get_bookmark_list ()),
......@@ -1323,7 +1323,7 @@ nautilus_window_initialize_menus_part_1 (NautilusWindow *window)
eel_preferences_add_callback_while_alive ("user_level",
user_level_changed_callback,
window,
GTK_OBJECT (window));
G_OBJECT (window));
/* Update the user level menu items for the first time */
user_level_changed_callback (window);
......
......@@ -208,7 +208,7 @@ add_sidebar_panel_callback (const char *name,
eel_preferences_add_callback_while_alive (preference_key,
sidebar_panels_changed_callback,
callback_data,
GTK_OBJECT (callback_data));
G_OBJECT (callback_data));
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment