summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-10-26 01:50:55 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-10-26 01:50:55 +0300
commitb97da3381e8d6c57436195986830ded035c9e386 (patch)
tree154b29b2ff46f6e7ac66085a031df48b37691e8f /src/ui
parent3380502064e141feed402b5d67576d50a05c50c1 (diff)
downloadmetacity-b97da3381e8d6c57436195986830ded035c9e386.tar.gz
tabpopup: remove unused screen_width parameter
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/tabpopup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/tabpopup.c b/src/ui/tabpopup.c
index a6cd1541..2b429bb5 100644
--- a/src/ui/tabpopup.c
+++ b/src/ui/tabpopup.c
@@ -128,7 +128,6 @@ dimm_icon (GdkPixbuf *pixbuf)
static TabEntry*
tab_entry_new (const MetaTabEntry *entry,
- gint screen_width,
gboolean outline)
{
TabEntry *te;
@@ -251,10 +250,9 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
popup->current_selected_entry = NULL;
popup->outline = outline;
- screen_width = gdk_screen_get_width (screen);
for (i = 0; i < entry_count; ++i)
{
- TabEntry* new_entry = tab_entry_new (&entries[i], screen_width, outline);
+ TabEntry* new_entry = tab_entry_new (&entries[i], outline);
popup->entries = g_list_prepend (popup->entries, new_entry);
}
@@ -358,6 +356,7 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
gtk_label_set_ellipsize (GTK_LABEL (popup->label), PANGO_ELLIPSIZE_END);
/* Limit the window size to no bigger than screen_width/4 */
+ screen_width = gdk_screen_get_width (screen);
if (max_label_width>(screen_width/4))
{
max_label_width = screen_width/4;