diff options
author | Vincent Untz <vuntz@gnome.org> | 2007-06-26 12:47:26 +0000 |
---|---|---|
committer | Vincent Untz <vuntz@src.gnome.org> | 2007-06-26 12:47:26 +0000 |
commit | b9ffaefa880599d910d14a1304a2c60e18594c1e (patch) | |
tree | 1df858fb113ca3a0f82f7f1d33ee66da382d6536 /libwnck | |
parent | 8b093b50586ae0952b474105d410b15205661c42 (diff) | |
download | libwnck-b9ffaefa880599d910d14a1304a2c60e18594c1e.tar.gz |
updated (wnck_tasklist_set_minimum_width),
2007-06-26 Vincent Untz <vuntz@gnome.org>
* libwnck/tasklist.[ch]: (wnck_tasklist_init): updated
(wnck_tasklist_set_minimum_width),
(wnck_tasklist_get_minimum_width),
(wnck_tasklist_set_minimum_height),
(wnck_tasklist_get_minimum_height): deprecate those functions, since
the new size algorithm makes them more or less useless now. So they
don't do anything anymore.
svn path=/trunk/; revision=1378
Diffstat (limited to 'libwnck')
-rw-r--r-- | libwnck/tasklist.c | 56 | ||||
-rw-r--r-- | libwnck/tasklist.h | 2 |
2 files changed, 18 insertions, 40 deletions
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c index 3c5a4c5..2befd4e 100644 --- a/libwnck/tasklist.c +++ b/libwnck/tasklist.c @@ -89,8 +89,6 @@ typedef struct _WnckTask WnckTask; typedef struct _WnckTaskClass WnckTaskClass; #define DEFAULT_GROUPING_LIMIT 80 -#define DEFAULT_WIDTH 1 -#define DEFAULT_HEIGHT 48 #define MINI_ICON_SIZE DEFAULT_MINI_ICON_WIDTH #define TASKLIST_BUTTON_PADDING 4 @@ -216,9 +214,6 @@ struct _WnckTasklistPrivate int *size_hints; int size_hints_len; - gint minimum_width; - gint minimum_height; - WnckLoadIconFunction icon_loader; void *icon_loader_data; GDestroyNotify free_icon_loader_data; @@ -699,9 +694,6 @@ wnck_tasklist_init (WnckTasklist *tasklist) tasklist->priv->size_hints = NULL; tasklist->priv->size_hints_len = 0; - tasklist->priv->minimum_width = DEFAULT_WIDTH; - tasklist->priv->minimum_height = DEFAULT_HEIGHT; - tasklist->priv->icon_loader = NULL; tasklist->priv->icon_loader_data = NULL; tasklist->priv->free_icon_loader_data = NULL; @@ -1035,37 +1027,29 @@ wnck_tasklist_set_grouping_limit (WnckTasklist *tasklist, * @tasklist: a #WnckTasklist. * @size: a minimum width in pixels. * - * Sets the minimum width to use for @tasklist to @size pixels. If @size is -1, - * sets the minimum width to a default. + * Does nothing. + * + * Deprecated: */ void wnck_tasklist_set_minimum_width (WnckTasklist *tasklist, gint size) { - g_return_if_fail (WNCK_IS_TASKLIST (tasklist)); - - if (size == -1) size = DEFAULT_WIDTH; - - if (tasklist->priv->minimum_width == size) - return; - - tasklist->priv->minimum_width = size; - gtk_widget_queue_resize (GTK_WIDGET (tasklist)); } /** * wnck_tasklist_get_minimum_width: * @tasklist: a #WnckTasklist. * - * Returns the minimum width of @tasklist. + * Returns -1. + * + * Return value: -1. * - * Return value: the minimum width of @tasklist. + * Deprecated: */ gint wnck_tasklist_get_minimum_width (WnckTasklist *tasklist) { - g_return_val_if_fail (WNCK_IS_TASKLIST (tasklist), 0); - - return tasklist->priv->minimum_width; + return -1; } /** @@ -1073,37 +1057,29 @@ wnck_tasklist_get_minimum_width (WnckTasklist *tasklist) * @tasklist: a #WnckTasklist. * @size: a minimum height in pixels. * - * Sets the minimum height to use for @tasklist to @size pixels. If @size is -1, - * sets the minimum height to a default. + * Does nothing. + * + * Deprecated: */ void wnck_tasklist_set_minimum_height (WnckTasklist *tasklist, gint size) { - g_return_if_fail (WNCK_IS_TASKLIST (tasklist)); - - if (size == -1) size = DEFAULT_HEIGHT; - - if (tasklist->priv->minimum_height == size) - return; - - tasklist->priv->minimum_height = size; - gtk_widget_queue_resize (GTK_WIDGET (tasklist)); } /** * wnck_tasklist_get_minimum_height: * @tasklist: a #WnckTasklist. * - * Returns the minimum height of @tasklist. + * Returns -1. * - * Return value: the minimum height of @tasklist. + * Return value: -1. + * + * Deprecated: */ gint wnck_tasklist_get_minimum_height (WnckTasklist *tasklist) { - g_return_val_if_fail (WNCK_IS_TASKLIST (tasklist), 0); - - return tasklist->priv->minimum_height; + return -1; } /** diff --git a/libwnck/tasklist.h b/libwnck/tasklist.h index fbbf146..26974b2 100644 --- a/libwnck/tasklist.h +++ b/libwnck/tasklist.h @@ -98,10 +98,12 @@ void wnck_tasklist_set_include_all_workspaces (WnckTasklist *tasklist, gboolean include_all_workspaces); void wnck_tasklist_set_button_relief (WnckTasklist *tasklist, GtkReliefStyle relief); +#ifndef WNCK_DISABLE_DEPRECATED void wnck_tasklist_set_minimum_width (WnckTasklist *tasklist, gint size); gint wnck_tasklist_get_minimum_width (WnckTasklist *tasklist); void wnck_tasklist_set_minimum_height (WnckTasklist *tasklist, gint size); gint wnck_tasklist_get_minimum_height (WnckTasklist *tasklist); +#endif /* WNCK_DISABLE_DEPRECATED */ /** * WnckLoadIconFunction: |