~ztefn/haguichi/1.4

« back to all changes in this revision

Viewing changes to src/window.vala

  • Committer: Stephen Brandt
  • Date: 2023-10-21 16:47:20 UTC
  • Revision ID: git-v1:58aa13c43fa59da1ba0fa57203fcd309fd0b56a1
Fix styles for popovers in elementary stylesheet

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
using Gtk;
12
12
using Config;
13
13
 
14
 
#if USE_LIBHANDY
15
 
public class HaguichiWindow : Hdy.ApplicationWindow
16
 
#else
17
14
public class HaguichiWindow : Gtk.ApplicationWindow
18
 
#endif
19
15
{
20
16
    public static List<Gdk.Pixbuf> app_icons = new List<Gdk.Pixbuf>();
21
17
    
203
199
        
204
200
        Box main_box = new Box (Orientation.VERTICAL, 0);
205
201
        
206
 
#if !USE_LIBHANDY
207
202
        if (Haguichi.window_use_header_bar)
208
203
        {
209
204
            set_titlebar (header_bar);
210
205
        }
211
206
        else
212
207
        {
213
 
#endif
214
208
            main_box.pack_start (header_bar, false, false, 0);
215
 
#if !USE_LIBHANDY
216
209
        }
217
 
#endif
218
210
        
219
211
        main_box.pack_start (message_box, true, true, 0);
220
212
        main_box.pack_start (content_box, true, true, 0);
387
379
            {
388
380
                minimum_width += 50;
389
381
            }
390
 
#if USE_LIBHANDY
391
 
            header_bar.populate();
392
 
#endif
393
382
        }
394
383
        header_bar.show_hide_buttons (new_width, minimum_width);
395
384
    }