Skip to content

Commit

Permalink
libAdwaita: Switch to an SDD titlebar
Browse files Browse the repository at this point in the history
This prevents libAdwaita to style the window controls.
The window still doesn't follow the system theme, but at least
this commit makes the main window use native controls.

Fixes #11
a little bit..
  • Loading branch information
mtwebster authored and clefebvre committed Apr 21, 2024
1 parent 53944cd commit fc027d5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
2 changes: 0 additions & 2 deletions src/gnome-online-accounts-gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,6 @@ oa_window_init (OaWindow *window)

GtkWidget *menu_button = gtk_menu_button_new ();
gtk_menu_button_set_icon_name (GTK_MENU_BUTTON (menu_button), "open-menu-symbolic");
gtk_header_bar_pack_start (GTK_HEADER_BAR (window->header), menu_button);

GMenu *menu = g_menu_new ();
g_menu_append (menu, _("About"), "app.about");
Expand All @@ -518,7 +517,6 @@ oa_window_class_init (OaWindowClass *class)
gtk_widget_class_bind_template_child (widget_class, OaWindow, accounts_listbox);
gtk_widget_class_bind_template_child (widget_class, OaWindow, offline_revealer);
gtk_widget_class_bind_template_child (widget_class, OaWindow, providers_listbox);
gtk_widget_class_bind_template_child (widget_class, OaWindow, header);
gtk_widget_class_bind_template_child (widget_class, OaWindow, accounts_label);

gtk_widget_class_bind_template_callback (widget_class, on_account_row_activated);
Expand Down
29 changes: 0 additions & 29 deletions src/online-accounts.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,6 @@
<property name="default-height">600</property>
<property name="title">Online Accounts</property>
<property name="icon-name">gnome-online-accounts-gtk</property>
<child type="titlebar">
<object class="GtkHeaderBar" id="header">
<property name="title-widget">
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Online Accounts</property>
<property name="single-line-mode">True</property>
<style>
<class name="title"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Connect to your data in the cloud</property>
<property name="single-line-mode">True</property>
<style>
<class name="subtitle"/>
</style>
</object>
</child>
</object>
</property>
</object>
</child>
<child>
<object class="GtkOverlay">
<property name="child">
Expand Down

0 comments on commit fc027d5

Please sign in to comment.