[Terminal] Rename constant TILDA_TERMINAL_TW to TILDA_TERMINAL_PARENT_WINDOW
authorIra W. Snyder <devel@irasnyder.com>
Sat, 19 Jan 2008 23:04:47 +0000 (15:04 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Sat, 19 Jan 2008 23:04:47 +0000 (15:04 -0800)
The old name of this constant was a relic from the beginnings of
TildaTerminal, when I was still unfamiliar with the GObject system. There
is no longer any problem with using a much more descriptive name.

tilda-terminal.c

index d35344b..ac9452a 100644 (file)
@@ -333,7 +333,7 @@ static GObjectClass *parent_class = NULL;
 
 enum tilda_terminal_properties {
        TILDA_TERMINAL_NUMBER = 1,
-       TILDA_TERMINAL_TW,
+       TILDA_TERMINAL_PARENT_WINDOW,
 
        /* All non-constructor-only properties */
        TILDA_TERMINAL_BACKGROUND_IMAGE,
@@ -397,7 +397,7 @@ tilda_terminal_set_property (GObject      *object,
                        debug_printf ("terminal number: %d\n", self->number);
                        break;
 
-               case TILDA_TERMINAL_TW:
+               case TILDA_TERMINAL_PARENT_WINDOW:
                        self->parent_window = g_value_get_pointer (value);
                        debug_printf ("terminal parent window: 0x%x\n", self->parent_window);
                        break;
@@ -566,7 +566,7 @@ tilda_terminal_get_property (GObject    *object,
                        g_value_set_int (value, self->number);
                        break;
 
-               case TILDA_TERMINAL_TW:
+               case TILDA_TERMINAL_PARENT_WINDOW:
                        g_value_set_pointer (value, self->parent_window);
                        break;
 
@@ -810,7 +810,7 @@ tilda_terminal_class_init (gpointer g_class,
                                                                  G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
 
        g_object_class_install_property (gobject_class,
-                                                                        TILDA_TERMINAL_TW,
+                                                                        TILDA_TERMINAL_PARENT_WINDOW,
                                                                         pspec);
 
        pspec = g_param_spec_string ("background-image",