[nautilus-actions] Replace g_signal_connect with base_window_signal_connect
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Replace g_signal_connect with base_window_signal_connect
- Date: Tue, 27 Oct 2009 23:11:59 +0000 (UTC)
commit a8966684f3671bebdd37f83273e6502c6a708f4f
Author: Pierre Wieser <pwieser trychlos org>
Date: Tue Oct 27 23:37:25 2009 +0100
Replace g_signal_connect with base_window_signal_connect
ChangeLog | 6 ++++
src/nact/nact-icommand-tab.c | 42 +++++++++++++++---------------
src/nact/nact-iconditions-tab.c | 54 +++++++++++++++++++-------------------
3 files changed, 54 insertions(+), 48 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 70636e4..cdb862f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2009-10-27 Pierre Wieser <pwieser trychlos org>
+ * src/nact/nact-icommand-tab.c
+ (nact_icommand_tab_runtime_init_toplevel):
+ * src/nact/nact-iconditions-tab.c
+ (nact_iconditions_tab_runtime_init_toplevel):
+ Replace g_signal_connect with base_window_signal_connect.
+
* data/nautilus-actions.schemas.in:
* src/common/na-iprefs.h:
Define two new preferences: quit_on_esc, confirm_when_quit_on_esc.
diff --git a/src/nact/nact-icommand-tab.c b/src/nact/nact-icommand-tab.c
index 44723d0..a96be28 100644
--- a/src/nact/nact-icommand-tab.c
+++ b/src/nact/nact-icommand-tab.c
@@ -213,51 +213,51 @@ nact_icommand_tab_runtime_init_toplevel( NactICommandTab *instance )
if( st_initialized && !st_finalized ){
label_entry = get_label_entry( instance );
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( label_entry ),
"changed",
- G_CALLBACK( on_label_changed ),
- instance );
+ G_CALLBACK( on_label_changed ));
path_entry = get_path_entry( instance );
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( path_entry ),
"changed",
- G_CALLBACK( on_path_changed ),
- instance );
+ G_CALLBACK( on_path_changed ));
path_button = get_path_button( instance );
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( path_button ),
"clicked",
- G_CALLBACK( on_path_browse ),
- instance );
+ G_CALLBACK( on_path_browse ));
parameters_entry = get_parameters_entry( instance );
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( parameters_entry ),
"changed",
- G_CALLBACK( on_parameters_changed ),
- instance );
+ G_CALLBACK( on_parameters_changed ));
legend_button = get_legend_button( instance );
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( legend_button ),
"clicked",
- G_CALLBACK( on_legend_clicked ),
- instance );
+ G_CALLBACK( on_legend_clicked ));
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( instance ),
TAB_UPDATABLE_SIGNAL_SELECTION_CHANGED,
- G_CALLBACK( on_tab_updatable_selection_changed ),
- instance );
+ G_CALLBACK( on_tab_updatable_selection_changed ));
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( instance ),
IACTIONS_LIST_SIGNAL_COLUMN_EDITED,
- G_CALLBACK( on_iactions_list_column_edited ),
- instance );
+ G_CALLBACK( on_iactions_list_column_edited ));
}
}
diff --git a/src/nact/nact-iconditions-tab.c b/src/nact/nact-iconditions-tab.c
index 87e2c77..53fd204 100644
--- a/src/nact/nact-iconditions-tab.c
+++ b/src/nact/nact-iconditions-tab.c
@@ -169,65 +169,65 @@ nact_iconditions_tab_runtime_init_toplevel( NactIConditionsTab *instance )
if( st_initialized && !st_finalized ){
basenames_widget = get_basenames_entry( instance );
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( basenames_widget ),
"changed",
- G_CALLBACK( on_basenames_changed ),
- instance );
+ G_CALLBACK( on_basenames_changed ));
matchcase_button = get_matchcase_button( instance );
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( matchcase_button ),
"toggled",
- G_CALLBACK( on_matchcase_toggled ),
- instance );
+ G_CALLBACK( on_matchcase_toggled ));
mimetypes_widget = get_mimetypes_entry( instance );
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( mimetypes_widget ),
"changed",
- G_CALLBACK( on_mimetypes_changed ),
- instance );
+ G_CALLBACK( on_mimetypes_changed ));
isfile_button = get_isfile_button( instance );
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( isfile_button ),
"toggled",
- G_CALLBACK( on_isfiledir_toggled ),
- instance );
+ G_CALLBACK( on_isfiledir_toggled ));
isdir_button = get_isdir_button( instance );
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( isdir_button ),
"toggled",
- G_CALLBACK( on_isfiledir_toggled ),
- instance );
+ G_CALLBACK( on_isfiledir_toggled ));
both_button = get_both_button( instance );
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( both_button ),
"toggled",
- G_CALLBACK( on_isfiledir_toggled ),
- instance );
+ G_CALLBACK( on_isfiledir_toggled ));
multiple_button = get_multiple_button( instance );
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( multiple_button ),
"toggled",
- G_CALLBACK( on_multiple_toggled ),
- instance );
+ G_CALLBACK( on_multiple_toggled ));
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( instance ),
TAB_UPDATABLE_SIGNAL_SELECTION_CHANGED,
- G_CALLBACK( on_tab_updatable_selection_changed ),
- instance );
+ G_CALLBACK( on_tab_updatable_selection_changed ));
- g_signal_connect(
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
G_OBJECT( instance ),
TAB_UPDATABLE_SIGNAL_ENABLE_TAB,
- G_CALLBACK( on_tab_updatable_enable_tab ),
- instance );
+ G_CALLBACK( on_tab_updatable_enable_tab ));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]