From: Ira W. Snyder Date: Thu, 17 Jan 2008 05:52:47 +0000 (-0800) Subject: [Window] Rename max-height and max-width properties X-Git-Url: https://irasnyder.com/gitweb/?a=commitdiff_plain;h=ac911e8509c0b467b9011ec7988d80f70b6c528e;p=tilda-gobject.git [Window] Rename max-height and max-width properties Rename the max-height and max-width properties to height and width, respectively. Now that min-height and min-width are gone, there is no need for the "max" prefix. --- diff --git a/tilda-window.c b/tilda-window.c index 1887b73..13b9825 100644 --- a/tilda-window.c +++ b/tilda-window.c @@ -259,8 +259,8 @@ enum tilda_window_properties { TILDA_WINDOW_KEY, - TILDA_WINDOW_MAX_HEIGHT, - TILDA_WINDOW_MAX_WIDTH, + TILDA_WINDOW_HEIGHT, + TILDA_WINDOW_WIDTH, TILDA_WINDOW_X_POSITION, TILDA_WINDOW_Y_POSITION, @@ -316,14 +316,14 @@ tilda_window_set_property (GObject *object, g_print ("window key: %s\n", self->key); break; - case TILDA_WINDOW_MAX_HEIGHT: - self->max_height = g_value_get_int (value); - g_print ("window max height: %d\n", self->max_height); + case TILDA_WINDOW_HEIGHT: + self->height = g_value_get_int (value); + g_print ("window height: %d\n", self->height); break; - case TILDA_WINDOW_MAX_WIDTH: - self->max_width = g_value_get_int (value); - g_print ("window max width: %d\n", self->max_width); + case TILDA_WINDOW_WIDTH: + self->width = g_value_get_int (value); + g_print ("window width: %d\n", self->width); break; case TILDA_WINDOW_X_POSITION: @@ -413,12 +413,12 @@ tilda_window_get_property (GObject *object, g_value_set_string (value, self->key); break; - case TILDA_WINDOW_MAX_HEIGHT: - g_value_set_int (value, self->max_height); + case TILDA_WINDOW_HEIGHT: + g_value_set_int (value, self->height); break; - case TILDA_WINDOW_MAX_WIDTH: - g_value_set_int (value, self->max_width); + case TILDA_WINDOW_WIDTH: + g_value_set_int (value, self->width); break; case TILDA_WINDOW_X_POSITION: @@ -608,8 +608,8 @@ tilda_window_class_init (gpointer g_class, TILDA_WINDOW_KEY, pspec); - pspec = g_param_spec_int ("max-height", - "Window's maximum height", + pspec = g_param_spec_int ("height", + "Window's height", NULL, 0, INT_MAX, @@ -617,11 +617,11 @@ tilda_window_class_init (gpointer g_class, G_PARAM_READWRITE); g_object_class_install_property (gobject_class, - TILDA_WINDOW_MAX_HEIGHT, + TILDA_WINDOW_HEIGHT, pspec); - pspec = g_param_spec_int ("max-width", - "Window's maximum width", + pspec = g_param_spec_int ("width", + "Window's width", NULL, 0, INT_MAX, @@ -629,7 +629,7 @@ tilda_window_class_init (gpointer g_class, G_PARAM_READWRITE); g_object_class_install_property (gobject_class, - TILDA_WINDOW_MAX_WIDTH, + TILDA_WINDOW_WIDTH, pspec); pspec = g_param_spec_int ("x-position", diff --git a/tilda-window.h b/tilda-window.h index 7ec6e5d..a1fbabc 100644 --- a/tilda-window.h +++ b/tilda-window.h @@ -46,8 +46,8 @@ struct _TildaWindow { gchar *key; - gint max_height; - gint max_width; + gint height; + gint width; gint x_position; gint y_position;