[libwnck] selector: remove unused variable
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck] selector: remove unused variable
- Date: Fri, 11 Nov 2016 22:49:28 +0000 (UTC)
commit 8428b26a7a83aed797e126f082d5439c28096f40
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Oct 30 14:46:36 2016 +0200
selector: remove unused variable
libwnck/selector.c | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/libwnck/selector.c b/libwnck/selector.c
index ce356c8..066d3e8 100644
--- a/libwnck/selector.c
+++ b/libwnck/selector.c
@@ -65,8 +65,6 @@ struct _WnckSelectorPrivate {
GtkWidget *menu;
GtkWidget *no_windows_item;
GHashTable *window_hash;
-
- int size;
};
G_DEFINE_TYPE (WnckSelector, wnck_selector, GTK_TYPE_MENU_BAR);
@@ -183,7 +181,7 @@ wnck_selector_dimm_icon (GdkPixbuf *pixbuf)
static void
wnck_selector_set_window_icon (WnckSelector *selector,
GtkWidget *image,
- WnckWindow *window, gboolean use_icon_size)
+ WnckWindow *window)
{
GdkPixbuf *pixbuf, *freeme, *freeme2;
int width, height;
@@ -199,9 +197,6 @@ wnck_selector_set_window_icon (WnckSelector *selector,
if (!pixbuf)
pixbuf = wnck_selector_get_default_window_icon ();
- if (!use_icon_size && selector->priv->size > 1)
- icon_size = selector->priv->size;
-
if (icon_size == -1)
gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, NULL, &icon_size);
@@ -236,8 +231,7 @@ wnck_selector_set_window_icon (WnckSelector *selector,
static void
wnck_selector_set_active_window (WnckSelector *selector, WnckWindow *window)
{
- wnck_selector_set_window_icon (selector, selector->priv->image,
- window, FALSE);
+ wnck_selector_set_window_icon (selector, selector->priv->image, window);
selector->priv->icon_window = window;
}
@@ -356,7 +350,7 @@ wnck_selector_window_icon_changed (WnckWindow *window,
if (item != NULL)
{
image = gtk_image_new ();
- wnck_selector_set_window_icon (selector, image, window, TRUE);
+ wnck_selector_set_window_icon (selector, image, window);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item->item),
GTK_WIDGET (image));
gtk_widget_show (image);
@@ -724,7 +718,7 @@ wnck_selector_create_window (WnckSelector *selector, WnckWindow *window)
image = gtk_image_new ();
- wnck_selector_set_window_icon (selector, image, window, TRUE);
+ wnck_selector_set_window_icon (selector, image, window);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item),
GTK_WIDGET (image));
@@ -1244,8 +1238,6 @@ wnck_selector_init (WnckSelector *selector)
selector->priv = WNCK_SELECTOR_GET_PRIVATE (selector);
- selector->priv->size = -1;
-
gtk_widget_add_events (GTK_WIDGET (selector), GDK_SCROLL_MASK);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]