[metacity] tabpopup: remove unused screen_width parameter
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] tabpopup: remove unused screen_width parameter
- Date: Tue, 25 Oct 2016 22:55:25 +0000 (UTC)
commit b97da3381e8d6c57436195986830ded035c9e386
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Oct 26 01:50:55 2016 +0300
tabpopup: remove unused screen_width parameter
src/ui/tabpopup.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/ui/tabpopup.c b/src/ui/tabpopup.c
index a6cd154..2b429bb 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]