Added notify signals to properties
authorfliep <fliep@ddfedd41-794f-dd11-ae45-00112f111e67>
Sun, 14 Mar 2010 11:23:11 +0000 (11:23 +0000)
committerfliep <fliep@ddfedd41-794f-dd11-ae45-00112f111e67>
Sun, 14 Mar 2010 11:23:11 +0000 (11:23 +0000)
libchimara/chimara-glk.c
libchimara/chimara-if.c

index f4cd156fe3da9ae3a1d06127dde408aed12efd5d..4af716b40e70883d5f458fc7874a3c812035304c 100644 (file)
@@ -840,6 +840,7 @@ chimara_glk_set_interactive(ChimaraGlk *glk, gboolean interactive)
     
     ChimaraGlkPrivate *priv = CHIMARA_GLK_PRIVATE(glk);
     priv->interactive = interactive;
+    g_object_notify(G_OBJECT(glk), "interactive");
 }
 
 /**
@@ -876,6 +877,7 @@ chimara_glk_set_protect(ChimaraGlk *glk, gboolean protect)
     
     ChimaraGlkPrivate *priv = CHIMARA_GLK_PRIVATE(glk);
     priv->protect = protect;
+    g_object_notify(G_OBJECT(glk), "protect");
 }
 
 /**
@@ -913,7 +915,7 @@ chimara_glk_set_default_font_description(ChimaraGlk *glk, PangoFontDescription *
        ChimaraGlkPrivate *priv = CHIMARA_GLK_PRIVATE(glk);
        pango_font_description_free(priv->default_font_desc);
        priv->default_font_desc = pango_font_description_copy(font);
-       
+       g_object_notify(G_OBJECT(glk), "default-font-description");
        /* TODO: Apply the font description to all the windows and recalculate the sizes */
 }
 
@@ -941,6 +943,7 @@ chimara_glk_set_default_font_string(ChimaraGlk *glk, const gchar *font)
        ChimaraGlkPrivate *priv = CHIMARA_GLK_PRIVATE(glk);
        pango_font_description_free(priv->default_font_desc);
        priv->default_font_desc = fontdesc;
+       g_object_notify(G_OBJECT(glk), "default-font-description");
        
        /* TODO: Apply the font description to all the windows and recalculate the sizes */
 }
@@ -980,6 +983,7 @@ chimara_glk_set_monospace_font_description(ChimaraGlk *glk, PangoFontDescription
        ChimaraGlkPrivate *priv = CHIMARA_GLK_PRIVATE(glk);
        pango_font_description_free(priv->monospace_font_desc);
        priv->monospace_font_desc = pango_font_description_copy(font);
+       g_object_notify(G_OBJECT(glk), "monospace-font-description");
        
        /* TODO: Apply the font description to all the windows and recalculate the sizes */
 }
@@ -1008,6 +1012,7 @@ chimara_glk_set_monospace_font_string(ChimaraGlk *glk, const gchar *font)
        ChimaraGlkPrivate *priv = CHIMARA_GLK_PRIVATE(glk);
        pango_font_description_free(priv->monospace_font_desc);
        priv->monospace_font_desc = fontdesc;
+       g_object_notify(G_OBJECT(glk), "monospace-font-description");
        
        /* TODO: Apply the font description to all the windows and recalculate the sizes */
 }
@@ -1045,6 +1050,7 @@ chimara_glk_set_spacing(ChimaraGlk *glk, guint spacing)
        
        ChimaraGlkPrivate *priv = CHIMARA_GLK_PRIVATE(glk);
        priv->spacing = spacing;
+       g_object_notify(G_OBJECT(glk), "spacing");
 }
 
 /**
index 939d734a9c990875ce7ee2f9511440b71db0c134..c7e4575f41fdc25363c8958806a5b5654ef917dc 100644 (file)
@@ -166,27 +166,35 @@ chimara_if_set_property(GObject *object, guint prop_id, const GValue *value, GPa
     {
        case PROP_PIRACY_MODE:
                PROCESS_FLAG(priv->flags, CHIMARA_IF_PIRACY_MODE, g_value_get_boolean(value));
+               g_object_notify(object, "piracy-mode");
                break;
        case PROP_TANDY_BIT:
                PROCESS_FLAG(priv->flags, CHIMARA_IF_TANDY_BIT, g_value_get_boolean(value));
+               g_object_notify(object, "tandy-bit");
                break;
        case PROP_EXPAND_ABBREVIATIONS:
                PROCESS_FLAG(priv->flags, CHIMARA_IF_EXPAND_ABBREVIATIONS, g_value_get_boolean(value));
+               g_object_notify(object, "expand-abbreviations");
                break;
        case PROP_IGNORE_ERRORS:
                PROCESS_FLAG(priv->flags, CHIMARA_IF_IGNORE_ERRORS, g_value_get_boolean(value));
+               g_object_notify(object, "ignore-errors");
                break;
        case PROP_TYPO_CORRECTION:
                PROCESS_FLAG(priv->flags, CHIMARA_IF_TYPO_CORRECTION, g_value_get_boolean(value));
+               g_object_notify(object, "typo-correction");
                break;
        case PROP_INTERPRETER_NUMBER:
                priv->interpreter_number = g_value_get_uint(value);
+               g_object_notify(object, "interpreter-number");
                break;
        case PROP_RANDOM_SEED:
                priv->random_seed = g_value_get_int(value);
+               g_object_notify(object, "random-seed");
                break;
        case PROP_RANDOM_SEED_SET:
                priv->random_seed_set = g_value_get_boolean(value);
+               g_object_notify(object, "random-seed-set");
                break;
         default:
             G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);