aboutsummaryrefslogtreecommitdiff
path: root/src/greeter-list.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/greeter-list.vala')
-rw-r--r--src/greeter-list.vala11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/greeter-list.vala b/src/greeter-list.vala
index 77a451f..a0ae6da 100644
--- a/src/greeter-list.vala
+++ b/src/greeter-list.vala
@@ -24,6 +24,8 @@
*/
private const int MAX_FIELD_SIZE = 200;
+public int _scale_factor = 1;
+
private int get_grid_offset (int size)
{
@@ -102,7 +104,7 @@ public abstract class GreeterList : FadableBox
protected Mode mode = Mode.ENTRY;
public const int BORDER = 4;
- public const int BOX_WIDTH = 8; /* in grid_size blocks */
+ public const int BOX_WIDTH = 9; /* in grid_size blocks */
public const int DEFAULT_BOX_HEIGHT = 3; /* in grid_size blocks */
private uint n_above = 4;
@@ -173,6 +175,8 @@ public abstract class GreeterList : FadableBox
can_focus = false;
visible_window = false;
+ _scale_factor = get_scale_factor ();
+
fixed = new Gtk.Fixed ();
fixed.show ();
add (fixed);
@@ -290,6 +294,7 @@ public abstract class GreeterList : FadableBox
}
selected_entry.add_message (text, is_error);
+ redraw_greeter_box ();
}
public DashEntry add_prompt (string text, bool secret = false)
@@ -644,10 +649,6 @@ public abstract class GreeterList : FadableBox
focus_prompt ();
entry_displayed_done ();
mode = Mode.ENTRY;
-
-#if HAVE_GTK_3_20_0
- queue_allocate ();
-#endif
}
protected void select_entry (PromptBox entry, double direction, bool do_scroll = true)