@@ -38,7 +38,10 @@ public class Obliviate.MainView : Gtk.Overlay {
3838 grid = new Gtk .Grid () {
3939 row_spacing = 4 ,
4040 column_spacing = 4 ,
41- margin = 30 ,
41+ margin_top = 30 ,
42+ margin_bottom = 30 ,
43+ margin_start = 30 ,
44+ margin_end = 30 ,
4245 halign = Gtk . Align . CENTER
4346 };
4447
@@ -53,15 +56,13 @@ public class Obliviate.MainView : Gtk.Overlay {
5356 };
5457
5558 site = new Gtk .Entry () {
56- placeholder_text = _ ("GitHub ")
59+ placeholder_text = _ ("GitHub "),
60+ primary_icon_name = "dialog-information-symbolic",
61+ primary_icon_tooltip_text = "Site is not case-sensitive. “GitHub” equals “github”."
5762 };
5863
5964 site.changed.connect (handle_generate_password );
6065
61- var site_info = new Gtk .Image .from_icon_name (" dialog-information-symbolic" , Gtk . IconSize . MENU ) {
62- tooltip_text = _ ("Site is not case -sensitive . “GitHub ” equals “github ”.")
63- };
64-
6566 var cipher_key_label = new Gtk .Label (_ (" Cipher key:" )) {
6667 halign = Gtk . Align . END ,
6768 margin_end = 4
@@ -103,8 +104,8 @@ public class Obliviate.MainView : Gtk.Overlay {
103104 });
104105
105106 var button_box = new Gtk .Box (Gtk . Orientation . HORIZONTAL , 6 );
106- button_box.pack_start (copy_btn );
107- button_box.pack_end (copy_without_symbols_btn );
107+ button_box.prepend (copy_btn );
108+ button_box.append (copy_without_symbols_btn );
108109
109110 clearing_label = new Gtk .Label (ngettext (
110111 " Clearing clipboard in %.0f second" ,
@@ -123,14 +124,13 @@ public class Obliviate.MainView : Gtk.Overlay {
123124 clearing_progress.add_css_class (Granite .STYLE_CLASS_FLAT );
124125
125126 var plus_label = new Gtk .Label (" +" );
126- plus_label.get_style_context () .add_class ("sign ");
127+ plus_label.add_css_class ("sign ");
127128
128129 var equals_label = new Gtk .Label (" =" );
129- equals_label.get_style_context () .add_class ("sign ");
130+ equals_label.add_css_class ("sign ");
130131
131132 grid.attach (site_label , 0 , 0 , 1 , 1 );
132133 grid.attach_next_to (site , site_label , Gtk .PositionType .RIGHT );
133- grid.attach_next_to (site_info , site , Gtk .PositionType .RIGHT );
134134
135135 grid.attach_next_to (plus_label , site , Gtk .PositionType .BOTTOM );
136136
0 commit comments