[tepl] SignalGroup: rename add_handler_id() to add()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tepl] SignalGroup: rename add_handler_id() to add()
- Date: Wed, 26 Jul 2017 12:34:52 +0000 (UTC)
commit 3e9dc1b609e6baea286187f5fcb89a15254c6f23
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Jul 26 14:22:06 2017 +0200
SignalGroup: rename add_handler_id() to add()
To have shorter lines.
tepl/tepl-application-window.c | 20 ++++++++++----------
tepl/tepl-notebook.c | 10 +++++-----
tepl/tepl-signal-group.c | 4 ++--
tepl/tepl-signal-group.h | 8 ++++----
4 files changed, 21 insertions(+), 21 deletions(-)
---
diff --git a/tepl/tepl-application-window.c b/tepl/tepl-application-window.c
index 8647e30..7b997b3 100644
--- a/tepl/tepl-application-window.c
+++ b/tepl/tepl-application-window.c
@@ -546,11 +546,11 @@ active_view_notify_cb (TeplTabGroup *tab_group,
tepl_window->priv->view_signal_group = _tepl_signal_group_new (G_OBJECT (active_view));
- _tepl_signal_group_add_handler_id (tepl_window->priv->view_signal_group,
- g_signal_connect (active_view,
- "notify::editable",
- G_CALLBACK (active_view_editable_notify_cb),
- tepl_window));
+ _tepl_signal_group_add (tepl_window->priv->view_signal_group,
+ g_signal_connect (active_view,
+ "notify::editable",
+ G_CALLBACK (active_view_editable_notify_cb),
+ tepl_window));
exit:
g_object_notify (G_OBJECT (tepl_window), "active-view");
@@ -583,11 +583,11 @@ active_buffer_notify_cb (TeplTabGroup *tab_group,
tepl_window->priv->buffer_signal_group = _tepl_signal_group_new (G_OBJECT (active_buffer));
- _tepl_signal_group_add_handler_id (tepl_window->priv->buffer_signal_group,
- g_signal_connect (active_buffer,
- "notify::has-selection",
- G_CALLBACK
(active_buffer_has_selection_notify_cb),
- tepl_window));
+ _tepl_signal_group_add (tepl_window->priv->buffer_signal_group,
+ g_signal_connect (active_buffer,
+ "notify::has-selection",
+ G_CALLBACK (active_buffer_has_selection_notify_cb),
+ tepl_window));
exit:
update_edit_actions_sensitivity (tepl_window);
diff --git a/tepl/tepl-notebook.c b/tepl/tepl-notebook.c
index 15fbf5a..68e1a0d 100644
--- a/tepl/tepl-notebook.c
+++ b/tepl/tepl-notebook.c
@@ -151,11 +151,11 @@ check_active_tab_changed (TeplNotebook *notebook)
{
notebook->priv->view_signal_group = _tepl_signal_group_new (G_OBJECT (active_view));
- _tepl_signal_group_add_handler_id (notebook->priv->view_signal_group,
- g_signal_connect (active_view,
- "notify::buffer",
- G_CALLBACK (buffer_notify_cb),
- notebook));
+ _tepl_signal_group_add (notebook->priv->view_signal_group,
+ g_signal_connect (active_view,
+ "notify::buffer",
+ G_CALLBACK (buffer_notify_cb),
+ notebook));
}
g_object_notify (G_OBJECT (notebook), "active-tab");
diff --git a/tepl/tepl-signal-group.c b/tepl/tepl-signal-group.c
index c6d836e..dfbd69c 100644
--- a/tepl/tepl-signal-group.c
+++ b/tepl/tepl-signal-group.c
@@ -89,8 +89,8 @@ _tepl_signal_group_free (TeplSignalGroup *group)
}
void
-_tepl_signal_group_add_handler_id (TeplSignalGroup *group,
- gulong signal_handler_id)
+_tepl_signal_group_add (TeplSignalGroup *group,
+ gulong signal_handler_id)
{
g_return_if_fail (group != NULL);
diff --git a/tepl/tepl-signal-group.h b/tepl/tepl-signal-group.h
index 10c7a6a..e6f38a1 100644
--- a/tepl/tepl-signal-group.h
+++ b/tepl/tepl-signal-group.h
@@ -27,14 +27,14 @@ G_BEGIN_DECLS
typedef struct _TeplSignalGroup TeplSignalGroup;
G_GNUC_INTERNAL
-TeplSignalGroup * _tepl_signal_group_new (GObject *object);
+TeplSignalGroup * _tepl_signal_group_new (GObject *object);
G_GNUC_INTERNAL
-void _tepl_signal_group_free (TeplSignalGroup *group);
+void _tepl_signal_group_free (TeplSignalGroup *group);
G_GNUC_INTERNAL
-void _tepl_signal_group_add_handler_id (TeplSignalGroup *group,
- gulong signal_handler_id);
+void _tepl_signal_group_add (TeplSignalGroup *group,
+ gulong signal_handler_id);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]