From: Ira W. Snyder Date: Sat, 19 Jan 2008 23:04:47 +0000 (-0800) Subject: [Terminal] Rename constant TILDA_TERMINAL_TW to TILDA_TERMINAL_PARENT_WINDOW X-Git-Url: https://www.irasnyder.com/gitweb/?a=commitdiff_plain;h=5e5df6f0aae20e0ba7a5e9ca435935e7b479af9d;p=tilda-gobject.git [Terminal] Rename constant TILDA_TERMINAL_TW to TILDA_TERMINAL_PARENT_WINDOW 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. --- diff --git a/tilda-terminal.c b/tilda-terminal.c index d35344b..ac9452a 100644 --- a/tilda-terminal.c +++ b/tilda-terminal.c @@ -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",