[brasero] Make "tag-changed" signal appear in BraseroBurnSessionClass definition and use it in derived object
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Make "tag-changed" signal appear in BraseroBurnSessionClass definition and use it in derived object
- Date: Mon, 24 Aug 2009 13:46:16 +0000 (UTC)
commit 7276df7905a9fae8bf6a646b7e0cd87d7f092d19
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Wed Aug 19 15:37:02 2009 +0200
Make "tag-changed" signal appear in BraseroBurnSessionClass definition and use it in derived object
libbrasero-burn/brasero-session-cfg.c | 14 ++------------
libbrasero-burn/brasero-session.h | 3 +++
2 files changed, 5 insertions(+), 12 deletions(-)
---
diff --git a/libbrasero-burn/brasero-session-cfg.c b/libbrasero-burn/brasero-session-cfg.c
index 96c9142..4ef69e8 100644
--- a/libbrasero-burn/brasero-session-cfg.c
+++ b/libbrasero-burn/brasero-session-cfg.c
@@ -105,8 +105,7 @@ G_DEFINE_TYPE (BraseroSessionCfg, brasero_session_cfg, BRASERO_TYPE_SESSION_SPAN
static void
brasero_session_cfg_tag_changed (BraseroBurnSession *session,
- const gchar *tag,
- gpointer NULL_data)
+ const gchar *tag)
{
if (!strcmp (tag, BRASERO_VCD_TYPE)) {
int svcd_type;
@@ -1522,12 +1521,6 @@ brasero_session_cfg_init (BraseroSessionCfg *object)
"caps-changed",
G_CALLBACK (brasero_session_cfg_caps_changed),
object);
-
- /* FIXME: to be changed in the future */
- g_signal_connect (object,
- "tag-changed",
- G_CALLBACK (brasero_session_cfg_tag_changed),
- NULL);
}
static void
@@ -1540,10 +1533,6 @@ brasero_session_cfg_finalize (GObject *object)
priv = BRASERO_SESSION_CFG_PRIVATE (object);
- g_signal_handlers_disconnect_by_func (object,
- brasero_session_cfg_tag_changed,
- NULL);
-
drive = brasero_burn_session_get_burner (BRASERO_BURN_SESSION (object));
if (drive && brasero_drive_get_medium (drive))
brasero_session_cfg_save_drive_properties (BRASERO_SESSION_CFG (object),
@@ -1586,6 +1575,7 @@ brasero_session_cfg_class_init (BraseroSessionCfgClass *klass)
session_class->track_changed = brasero_session_cfg_track_changed;
session_class->output_changed = brasero_session_cfg_output_changed;
session_class->flags_changed = brasero_session_cfg_flags_changed;
+ session_class->tag_changed = brasero_session_cfg_tag_changed;
session_cfg_signals [WRONG_EXTENSION_SIGNAL] =
g_signal_new ("wrong_extension",
diff --git a/libbrasero-burn/brasero-session.h b/libbrasero-burn/brasero-session.h
index 89e1de0..09c9f5c 100644
--- a/libbrasero-burn/brasero-session.h
+++ b/libbrasero-burn/brasero-session.h
@@ -70,7 +70,10 @@ struct _BraseroBurnSessionClass {
gchar **toc);
BraseroImageFormat (*get_output_format) (BraseroBurnSession *session);
+ /** Signals **/
void (*flags_changed) (BraseroBurnSession *session);
+ void (*tag_changed) (BraseroBurnSession *session,
+ const gchar *tag);
void (*track_added) (BraseroBurnSession *session,
BraseroTrack *track);
void (*track_removed) (BraseroBurnSession *session,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]