Commit 4a225507 authored by Darin Adler's avatar Darin Adler
Browse files

Lots of files. Get rid a lot of unneeded casts.

	* Lots of files.
	Get rid a lot of unneeded casts.
parent ee16c763
......@@ -297,7 +297,7 @@ nautilus_search_bar_criterion_new_from_values (NautilusSearchBarCriterionType ty
details->bar = bar;
details->box = gtk_hwrap_box_new (FALSE);
g_signal_connect (G_OBJECT (details->box),
g_signal_connect (details->box,
"need_reallocation",
G_CALLBACK (queue_bar_resize_callback),
bar);
......@@ -317,7 +317,7 @@ nautilus_search_bar_criterion_new_from_values (NautilusSearchBarCriterionType ty
g_free (context_stripped_criteria_title);
g_object_set_data (G_OBJECT(item), "type", GINT_TO_POINTER(i));
g_signal_connect (G_OBJECT (item),
g_signal_connect (item,
"activate",
G_CALLBACK (criterion_type_changed_callback),
criterion);
......@@ -355,12 +355,12 @@ nautilus_search_bar_criterion_new_from_values (NautilusSearchBarCriterionType ty
don't need a date, like "yesterday" */
if (details->type == NAUTILUS_DATE_MODIFIED_SEARCH_CRITERION) {
if (modified_relation_should_show_value (i)) {
g_signal_connect (G_OBJECT (item), "activate",
g_signal_connect (item, "activate",
G_CALLBACK (show_date_widget),
criterion);
}
else {
g_signal_connect (G_OBJECT (item), "activate",
g_signal_connect (item, "activate",
G_CALLBACK (hide_date_widget),
criterion);
}
......@@ -718,7 +718,7 @@ nautilus_search_bar_criterion_update_valid_criteria_choices (NautilusSearchBarCr
g_object_set_data (G_OBJECT(item), "type", GINT_TO_POINTER(i));
g_signal_connect (G_OBJECT (item),
g_signal_connect (item,
"activate",
G_CALLBACK (criterion_type_changed_callback),
criterion);
......@@ -1046,7 +1046,7 @@ criterion_type_changed_callback (GtkObject *object,
g_return_if_fail (NAUTILUS_IS_COMPLEX_SEARCH_BAR (criterion->details->bar));
g_object_set_data (G_OBJECT (criterion), "type",
g_object_get_data (G_OBJECT (menu_item), "type"));
g_signal_emit (G_OBJECT (criterion),
g_signal_emit (criterion,
signals[CRITERION_TYPE_CHANGED], 0);
}
......
......@@ -211,7 +211,7 @@ nautilus_sidebar_title_init (NautilusSidebarTitle *sidebar_title)
"icons_changed",
G_CALLBACK (update_icon),
GTK_OBJECT (sidebar_title));
g_signal_connect (G_OBJECT (sidebar_title), "realize",
g_signal_connect (sidebar_title, "realize",
G_CALLBACK (realize_callback), NULL);
/* Create the icon */
......
......@@ -545,7 +545,7 @@ nautilus_sidebar_create_context_menu (NautilusSidebar *sidebar)
gtk_widget_show (menu_item);
gtk_menu_append (GTK_MENU(menu), menu_item);
gtk_widget_set_sensitive (menu_item, has_background);
g_signal_connect (G_OBJECT (menu_item), "activate",
g_signal_connect (menu_item, "activate",
G_CALLBACK (reset_background_callback), sidebar);
/* add a separator */
......@@ -709,7 +709,7 @@ receive_dropped_uri_list (NautilusSidebar *sidebar,
(eel_get_widget_background (GTK_WIDGET (sidebar)),
uris[0]);
} else if (exactly_one) {
g_signal_emit (G_OBJECT (sidebar),
g_signal_emit (sidebar,
signals[LOCATION_CHANGED], 0,
uris[0]);
}
......@@ -915,7 +915,7 @@ nautilus_sidebar_add_panel (NautilusSidebar *sidebar, NautilusViewFrame *panel)
gtk_widget_show (label);
g_signal_connect (G_OBJECT (panel), "view_loaded",
g_signal_connect (panel, "view_loaded",
G_CALLBACK (view_loaded_callback), sidebar);
gtk_notebook_append_page (GTK_NOTEBOOK (sidebar->details->notebook),
......@@ -1375,7 +1375,7 @@ add_command_buttons (NautilusSidebar *sidebar, GList *application_list)
/* Catch-all button after all the others. */
temp_button = gtk_button_new_with_label (_("Open with..."));
g_signal_connect (G_OBJECT (temp_button), "clicked",
g_signal_connect (temp_button, "clicked",
G_CALLBACK (open_with_callback), NULL);
gtk_object_set_user_data (GTK_OBJECT (temp_button), sidebar);
gtk_widget_show (temp_button);
......@@ -1491,7 +1491,7 @@ nautilus_sidebar_update_buttons (NautilusSidebar *sidebar)
gtk_widget_show (temp_button);
sidebar->details->has_buttons = TRUE;
g_signal_connect (G_OBJECT (temp_button), "clicked",
g_signal_connect (temp_button, "clicked",
G_CALLBACK (empty_trash_callback), NULL);
gtk_signal_connect_while_alive (GTK_OBJECT (nautilus_trash_monitor_get ()),
......@@ -1536,11 +1536,11 @@ nautilus_sidebar_update_appearance (NautilusSidebar *sidebar)
background = eel_get_widget_background (GTK_WIDGET (sidebar));
if (!sidebar->details->background_connected) {
sidebar->details->background_connected = TRUE;
g_signal_connect (G_OBJECT (background),
g_signal_connect (background,
"settings_changed",
G_CALLBACK (background_settings_changed_callback),
sidebar);
g_signal_connect (G_OBJECT (background),
g_signal_connect (background,
"reset",
G_CALLBACK (background_reset_callback),
sidebar);
......
......@@ -632,10 +632,10 @@ nautilus_window_constructed (NautilusWindow *window)
window->navigation_bar = nautilus_switchable_navigation_bar_new (window);
gtk_widget_show (GTK_WIDGET (window->navigation_bar));
g_signal_connect (G_OBJECT (window->navigation_bar), "location_changed",
g_signal_connect (window->navigation_bar, "location_changed",
G_CALLBACK (navigation_bar_location_changed_callback), window);
g_signal_connect (G_OBJECT (window->navigation_bar), "mode_changed",
g_signal_connect (window->navigation_bar, "mode_changed",
G_CALLBACK (navigation_bar_mode_changed_callback), window);
gtk_box_pack_start (GTK_BOX (location_bar_box), window->navigation_bar,
......@@ -699,7 +699,7 @@ nautilus_window_constructed (NautilusWindow *window)
/* set up the sidebar */
window->sidebar = nautilus_sidebar_new ();
gtk_widget_show (GTK_WIDGET (window->sidebar));
g_signal_connect (G_OBJECT (window->sidebar), "location_changed",
g_signal_connect (window->sidebar, "location_changed",
G_CALLBACK (go_to_callback), window);
gtk_paned_pack1 (GTK_PANED (window->content_hbox),
GTK_WIDGET (window->sidebar),
......@@ -1142,7 +1142,7 @@ create_view_as_menu_item (NautilusWindow *window,
menu_item = gtk_menu_item_new_with_label (menu_label);
g_free (menu_label);
g_signal_connect (G_OBJECT (menu_item),
g_signal_connect (menu_item,
"activate",
G_CALLBACK (view_as_menu_switch_views_callback),
window);
......@@ -1479,7 +1479,7 @@ load_view_as_menus_callback (NautilusFile *file,
/* Add "View as..." extra bonus choice. */
menu_item = gtk_menu_item_new_with_label (_("View as..."));
g_signal_connect (G_OBJECT (menu_item),
g_signal_connect (menu_item,
"activate",
G_CALLBACK (view_as_menu_choose_view_callback),
window);
......
......@@ -218,7 +218,7 @@ nautilus_switchable_navigation_bar_set_mode (NautilusSwitchableNavigationBar
}
#endif
g_signal_emit (G_OBJECT (bar), signals[MODE_CHANGED], 0, mode);
g_signal_emit (bar, signals[MODE_CHANGED], 0, mode);
}
static char *
......
......@@ -177,19 +177,19 @@ nautilus_theme_selector_init (NautilusThemeSelector *theme_selector)
gtk_box_pack_end (GTK_BOX (alignment_box), button_box, FALSE, FALSE, 2);
theme_selector->details->install_theme_button = gtk_button_new_with_label (_("Add New Theme..."));
g_signal_connect (G_OBJECT (theme_selector->details->install_theme_button),
g_signal_connect (theme_selector->details->install_theme_button,
"clicked",
G_CALLBACK (install_theme_button_clicked_callback),
theme_selector);
theme_selector->details->remove_theme_button = gtk_button_new_with_label (_("Remove Theme..."));
g_signal_connect (G_OBJECT (theme_selector->details->remove_theme_button),
g_signal_connect (theme_selector->details->remove_theme_button,
"clicked",
G_CALLBACK (remove_theme_button_clicked_callback),
theme_selector);
theme_selector->details->cancel_remove_button = gtk_button_new_with_label (_("Cancel Remove"));
g_signal_connect (G_OBJECT (theme_selector->details->cancel_remove_button),
g_signal_connect (theme_selector->details->cancel_remove_button,
"clicked",
G_CALLBACK (cancel_remove_button_clicked_callback),
theme_selector);
......@@ -220,13 +220,13 @@ nautilus_theme_selector_init (NautilusThemeSelector *theme_selector)
theme_selector_update_remove_theme_button (theme_selector);
g_signal_connect (G_OBJECT (theme_selector->details->theme_selector),
g_signal_connect (theme_selector->details->theme_selector,
"selection_changed",
G_CALLBACK (theme_selector_changed_callback),
theme_selector);
theme_selector->details->theme_selector_changed_connection =
g_signal_connect (G_OBJECT (theme_selector->details->remove_theme_selector),
g_signal_connect (theme_selector->details->remove_theme_selector,
"selection_changed",
G_CALLBACK (remove_theme_selector_changed_callback),
theme_selector);
......@@ -332,18 +332,18 @@ install_theme_button_clicked_callback (GtkWidget *button,
eel_gtk_window_set_up_close_accelerator (GTK_WINDOW (file_selection_dialog));
g_object_set_data (G_OBJECT (file_selection_dialog),
THEME_SELECTOR_DATA_KEY,
callback_data);
g_signal_connect (G_OBJECT (GTK_FILE_SELECTION (file_selection_dialog)->ok_button),
"clicked",
G_CALLBACK (file_selection_ok_clicked_callback),
file_selection_dialog);
g_signal_connect (G_OBJECT (GTK_FILE_SELECTION (file_selection_dialog)->cancel_button),
"clicked",
G_CALLBACK (file_selection_cancel_clicked_callback),
file_selection_dialog);
THEME_SELECTOR_DATA_KEY,
callback_data);
g_signal_connect (GTK_FILE_SELECTION (file_selection_dialog)->ok_button,
"clicked",
G_CALLBACK (file_selection_ok_clicked_callback),
file_selection_dialog);
g_signal_connect (GTK_FILE_SELECTION (file_selection_dialog)->cancel_button,
"clicked",
G_CALLBACK (file_selection_cancel_clicked_callback),
file_selection_dialog);
gtk_window_set_position (GTK_WINDOW (file_selection_dialog), GTK_WIN_POS_MOUSE);
if (theme_selector->details->parent_window != NULL) {
......@@ -513,7 +513,7 @@ theme_selector_changed_callback (EelImageChooser *image_chooser,
selected_row_position = eel_image_chooser_get_selected_row (image_chooser);
g_signal_emit (G_OBJECT (callback_data),
g_signal_emit (callback_data,
theme_selector_signals[THEME_CHANGED], 0);
}
......
......@@ -258,7 +258,7 @@ static void
emit_zoom_parameters_changed (NautilusViewFrame *view)
{
if (view->details->zoomable_frame != NULL) {
g_signal_emit (G_OBJECT (view), signals[ZOOM_PARAMETERS_CHANGED], 0);
g_signal_emit (view, signals[ZOOM_PARAMETERS_CHANGED], 0);
}
}
......@@ -271,7 +271,7 @@ view_frame_activated (NautilusViewFrame *view)
switch (view->details->state) {
case VIEW_FRAME_EMPTY:
view->details->state = VIEW_FRAME_NO_LOCATION;
g_signal_emit (G_OBJECT (view), signals[VIEW_LOADED], 0);
g_signal_emit (view, signals[VIEW_LOADED], 0);
emit_zoom_parameters_changed (view);
send_history (view);
return;
......@@ -328,7 +328,7 @@ view_frame_underway (NautilusViewFrame *view)
case VIEW_FRAME_WAITING:
case VIEW_FRAME_LOADED:
view->details->state = VIEW_FRAME_UNDERWAY;
g_signal_emit (G_OBJECT (view), signals[LOAD_UNDERWAY], 0);
g_signal_emit (view, signals[LOAD_UNDERWAY], 0);
return;
case VIEW_FRAME_UNDERWAY:
case VIEW_FRAME_FAILED:
......@@ -387,7 +387,7 @@ view_frame_loaded (NautilusViewFrame *view)
/* fall through */
case VIEW_FRAME_UNDERWAY:
view->details->state = VIEW_FRAME_LOADED;
g_signal_emit (G_OBJECT (view), signals[LOAD_COMPLETE], 0);
g_signal_emit (view, signals[LOAD_COMPLETE], 0);
return;
case VIEW_FRAME_LOADED:
case VIEW_FRAME_FAILED:
......@@ -412,7 +412,7 @@ view_frame_failed (NautilusViewFrame *view)
view->details->state = VIEW_FRAME_FAILED;
stop_activation (view);
destroy_view (view);
g_signal_emit (G_OBJECT (view), signals[FAILED], 0);
g_signal_emit (view, signals[FAILED], 0);
return;
case VIEW_FRAME_FAILED:
return;
......@@ -460,7 +460,7 @@ static void
emit_zoom_level_changed_callback (gpointer data,
gpointer callback_data)
{
g_signal_emit (G_OBJECT (data),
g_signal_emit (data,
signals[ZOOM_LEVEL_CHANGED], 0,
* (float *) callback_data);
}
......@@ -732,7 +732,7 @@ nautilus_view_frame_load_location (NautilusViewFrame *view,
g_free (view->details->title);
view->details->title = NULL;
g_signal_emit (G_OBJECT (view), signals[TITLE_CHANGED], 0);
g_signal_emit (view, signals[TITLE_CHANGED], 0);
view_frame_wait (view);
......@@ -974,7 +974,7 @@ nautilus_view_frame_open_location_in_this_window (NautilusViewFrame *view,
}
view_frame_wait_is_over (view);
g_signal_emit (G_OBJECT (view),
g_signal_emit (view,
signals[OPEN_LOCATION_IN_THIS_WINDOW], 0, location);
}
......@@ -989,7 +989,7 @@ nautilus_view_frame_open_location_prefer_existing_window (NautilusViewFrame *vie
}
view_frame_wait_is_over (view);
g_signal_emit (G_OBJECT (view),
g_signal_emit (view,
signals[OPEN_LOCATION_PREFER_EXISTING_WINDOW], 0, location);
}
......@@ -1005,7 +1005,7 @@ nautilus_view_frame_open_location_force_new_window (NautilusViewFrame *view,
}
view_frame_wait_is_over (view);
g_signal_emit (G_OBJECT (view),
g_signal_emit (view,
signals[OPEN_LOCATION_FORCE_NEW_WINDOW], 0,
location, selection);
}
......@@ -1026,7 +1026,7 @@ nautilus_view_frame_report_location_change (NautilusViewFrame *view,
view->details->title = g_strdup (title);
view_frame_wait_is_over (view);
g_signal_emit (G_OBJECT (view),
g_signal_emit (view,
signals[REPORT_LOCATION_CHANGE], 0,
location, selection, title);
}
......@@ -1048,7 +1048,7 @@ nautilus_view_frame_report_redirect (NautilusViewFrame *view,
view->details->title = g_strdup (title);
view_frame_wait_is_over (view);
g_signal_emit (G_OBJECT (view),
g_signal_emit (view,
signals[REPORT_REDIRECT], 0,
from_location, to_location, selection, title);
}
......@@ -1064,7 +1064,7 @@ nautilus_view_frame_report_selection_change (NautilusViewFrame *view,
}
view_frame_wait_is_over (view);
g_signal_emit (G_OBJECT (view),
g_signal_emit (view,
signals[CHANGE_SELECTION], 0, selection);
}
......@@ -1079,7 +1079,7 @@ nautilus_view_frame_report_status (NautilusViewFrame *view,
}
view_frame_wait_is_over (view);
g_signal_emit (G_OBJECT (view),
g_signal_emit (view,
signals[CHANGE_STATUS], 0, status);
}
......@@ -1102,7 +1102,7 @@ nautilus_view_frame_report_load_progress (NautilusViewFrame *view,
}
view_frame_underway (view);
g_signal_emit (G_OBJECT (view),
g_signal_emit (view,
signals[LOAD_PROGRESS_CHANGED], 0);
}
......@@ -1137,7 +1137,7 @@ nautilus_view_frame_go_back (NautilusViewFrame *view)
{
g_return_if_fail (NAUTILUS_IS_VIEW_FRAME (view));
g_signal_emit (G_OBJECT (view), signals[GO_BACK], 0);
g_signal_emit (view, signals[GO_BACK], 0);
}
void
......@@ -1162,7 +1162,7 @@ nautilus_view_frame_set_title (NautilusViewFrame *view,
view_frame_wait_is_over (view);
if (changed) {
g_signal_emit (G_OBJECT (view), signals[TITLE_CHANGED], 0);
g_signal_emit (view, signals[TITLE_CHANGED], 0);
}
}
......@@ -1217,7 +1217,7 @@ get_history_list (NautilusViewFrame *view)
Nautilus_History *history_list;
history_list = NULL;
g_signal_emit (G_OBJECT (view),
g_signal_emit (view,
signals[GET_HISTORY_LIST], 0,
&history_list);
return history_list;
......
......@@ -592,7 +592,7 @@ update_for_new_location (NautilusWindow *window)
file = nautilus_file_get (window->details->location);
nautilus_window_set_viewed_file (window, file);
window->details->viewed_file_seen = !nautilus_file_is_not_yet_confirmed (file);
g_signal_connect (G_OBJECT (file),
g_signal_connect (file,
"changed",
G_CALLBACK (viewed_file_changed_callback),
window);
......
......@@ -379,7 +379,7 @@ forget_history_if_confirmed (NautilusWindow *window)
GTK_WINDOW (window));
g_free (prompt);
g_signal_connect (GTK_OBJECT (dialog),
g_signal_connect (dialog,
"response",
G_CALLBACK (forget_history_if_yes),
NULL);
......@@ -1333,7 +1333,7 @@ nautilus_window_initialize_menus_part_1 (NautilusWindow *window)
user_level_changed_callback (window);
/* Register to catch Bonobo UI events so we can notice View As changes */
g_signal_connect (G_OBJECT (window->details->shell_ui), "ui_event",
g_signal_connect (window->details->shell_ui, "ui_event",
G_CALLBACK (nautilus_window_handle_ui_event_callback), window);
bonobo_ui_component_thaw (window->details->shell_ui, NULL);
......
......@@ -372,11 +372,11 @@ set_up_back_or_forward_toolbar_item (NautilusWindow *window,
gtk_widget_show (GTK_WIDGET (item));
button = bonobo_ui_toolbar_button_item_get_button_widget (item);
g_signal_connect (G_OBJECT (button),
g_signal_connect (button,
"button_press_event",
G_CALLBACK (back_or_forward_button_pressed_callback),
window);
g_signal_connect (G_OBJECT (button),
g_signal_connect (button,
"clicked",
G_CALLBACK (back_or_forward_button_clicked_callback),
window);
......
......@@ -632,10 +632,10 @@ nautilus_window_constructed (NautilusWindow *window)
window->navigation_bar = nautilus_switchable_navigation_bar_new (window);
gtk_widget_show (GTK_WIDGET (window->navigation_bar));
g_signal_connect (G_OBJECT (window->navigation_bar), "location_changed",
g_signal_connect (window->navigation_bar, "location_changed",
G_CALLBACK (navigation_bar_location_changed_callback), window);
g_signal_connect (G_OBJECT (window->navigation_bar), "mode_changed",
g_signal_connect (window->navigation_bar, "mode_changed",
G_CALLBACK (navigation_bar_mode_changed_callback), window);
gtk_box_pack_start (GTK_BOX (location_bar_box), window->navigation_bar,
......@@ -699,7 +699,7 @@ nautilus_window_constructed (NautilusWindow *window)
/* set up the sidebar */
window->sidebar = nautilus_sidebar_new ();
gtk_widget_show (GTK_WIDGET (window->sidebar));
g_signal_connect (G_OBJECT (window->sidebar), "location_changed",
g_signal_connect (window->sidebar, "location_changed",
G_CALLBACK (go_to_callback), window);
gtk_paned_pack1 (GTK_PANED (window->content_hbox),
GTK_WIDGET (window->sidebar),
......@@ -1142,7 +1142,7 @@ create_view_as_menu_item (NautilusWindow *window,
menu_item = gtk_menu_item_new_with_label (menu_label);
g_free (menu_label);
g_signal_connect (G_OBJECT (menu_item),
g_signal_connect (menu_item,
"activate",
G_CALLBACK (view_as_menu_switch_views_callback),
window);
......@@ -1479,7 +1479,7 @@ load_view_as_menus_callback (NautilusFile *file,
/* Add "View as..." extra bonus choice. */
menu_item = gtk_menu_item_new_with_label (_("View as..."));
g_signal_connect (G_OBJECT (menu_item),
g_signal_connect (menu_item,
"activate",
G_CALLBACK (view_as_menu_choose_view_callback),
window);
......
......@@ -474,7 +474,7 @@ zoom_menu_callback (GtkMenuItem *item, gpointer callback_data)
/* if we can zoom */
if (can_zoom) {
g_signal_emit (G_OBJECT (zoom_control), signals[ZOOM_TO_LEVEL], 0, zoom_level);
g_signal_emit (zoom_control, signals[ZOOM_TO_LEVEL], 0, zoom_level);
}
}
......@@ -515,7 +515,7 @@ create_zoom_menu_item (GtkMenu *menu, GtkWidget *widget, float zoom_level,
zoom_level == zoom_control->details->zoom_level);
g_object_set_data_full (G_OBJECT (menu_item), "zoom_level", zoom_level_ptr, g_free);
g_signal_connect (G_OBJECT (menu_item), "activate",
g_signal_connect (menu_item, "activate",
G_CALLBACK (zoom_menu_callback),
zoom_control);
......@@ -566,11 +566,11 @@ nautilus_zoom_control_button_press_event (GtkWidget *widget, GdkEventButton *eve
}
if ((event->x < (width / 3)) && nautilus_zoom_control_can_zoom_out (zoom_control)) {
g_signal_emit (G_OBJECT (widget), signals[ZOOM_OUT], 0);
g_signal_emit (widget, signals[ZOOM_OUT], 0);
} else if ((event->x > ((2 * width) / 3)) && nautilus_zoom_control_can_zoom_in (zoom_control)) {
g_signal_emit (G_OBJECT (widget), signals[ZOOM_IN], 0);
g_signal_emit (widget, signals[ZOOM_IN], 0);
} else if ((event->x >= (center - (width >> 3))) && (event->x <= (center + (width >> 3)))) {
g_signal_emit (G_OBJECT (widget), signals[ZOOM_TO_FIT], 0);
g_signal_emit (widget, signals[ZOOM_TO_FIT], 0);
}
/*
......
......@@ -67,7 +67,7 @@ main (int argc, char *argv[])
bonobo_poa_manager ());
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
g_signal_connect (G_OBJECT (window), "destroy",
g_signal_connect (window, "destroy",
gtk_main_quit, NULL);
gtk_widget_show_all (GTK_WIDGET (window));
......
......@@ -94,7 +94,7 @@ picker_new (const char *name,
string_picker = eel_string_picker_new ();
eel_caption_set_title_label (EEL_CAPTION (string_picker), name);
g_signal_connect (G_OBJECT (string_picker), "changed", G_CALLBACK (int_picker_changed_callback),
g_signal_connect (string_picker, "changed", G_CALLBACK (int_picker_changed_callback),
(gpointer) name);
eel_string_picker_set_string_list (EEL_STRING_PICKER (string_picker), entries);
......@@ -118,7 +118,7 @@ user_level_picker_new (const char *name,
string_picker = eel_string_picker_new ();
eel_caption_set_title_label (EEL_CAPTION (string_picker), name);
g_signal_connect (G_OBJECT (string_picker), "changed", G_CALLBACK (user_level_picker_changed_callback),
g_signal_connect (string_picker, "changed", G_CALLBACK (user_level_picker_changed_callback),
(gpointer) name);
eel_string_picker_set_string_list (EEL_STRING_PICKER (string_picker), entries);
......
......@@ -40,7 +40,7 @@ main (int argc, char * argv[])
nautilus_global_preferences_init ();
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
g_signal_connect (G_OBJECT (window), "delete_event", G_CALLBACK (delete_event), NULL);
g_signal_connect (window, "delete_event", G_CALLBACK (delete_event), NULL);
button = gtk_toggle_button_new_with_label ("Smooth Graphics");
......@@ -49,7 +49,7 @@ main (int argc, char * argv[])
gtk_container_add (GTK_CONTAINER (window), button);
g_signal_connect (G_OBJECT (button),
g_signal_connect (button,
"toggled",
G_CALLBACK (button_toggled),
NULL);
......
......@@ -45,7 +45,7 @@ main (int argc, char* argv[])
* This must be done after the widget is realized, due to
* an apparent bug in gtk_viewport_set_shadow_type.
*/
// g_signal_connect (G_OBJECT (GTK_BIN (scroller)->child),
// g_signal_connect (GTK_BIN (scroller->child),
// "realize",
// remove_default_viewport_shadow,
// NULL);
......
......@@ -58,7 +58,7 @@ test_window_new (const char *title, guint border_width)
gtk_window_set_title (GTK_WINDOW (window), title);
}
g_signal_connect (G_OBJECT (window),
g_signal_connect (window,
"delete_event",
G_CALLBACK (test_delete_event),
NULL);
......
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