malcontent-control: Use HdyWindow and HdyHeaderBar
This commit is contained in:
parent
f11d91da3a
commit
d80ed10592
|
@ -27,6 +27,7 @@
|
|||
#include <glib/gi18n-lib.h>
|
||||
#include <gio/gio.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <libhandy-1/handy.h>
|
||||
#include <libmalcontent-ui/malcontent-ui.h>
|
||||
#include <polkit/polkit.h>
|
||||
|
||||
|
@ -250,6 +251,8 @@ mct_application_startup (GApplication *application)
|
|||
/* Chain up. */
|
||||
G_APPLICATION_CLASS (mct_application_parent_class)->startup (application);
|
||||
|
||||
hdy_init ();
|
||||
|
||||
g_action_map_add_action_entries (G_ACTION_MAP (application), app_entries,
|
||||
G_N_ELEMENTS (app_entries), application);
|
||||
|
||||
|
|
|
@ -2,11 +2,15 @@
|
|||
<!-- Copyright © 2019, 2020 Endless Mobile, Inc. -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.12"/>
|
||||
<object class="GtkApplicationWindow" id="main_window">
|
||||
<object class="HdyApplicationWindow" id="main_window">
|
||||
<property name="default-width">540</property>
|
||||
<property name="default-height">580</property>
|
||||
<child type="titlebar">
|
||||
<object class="GtkHeaderBar" id="header">
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="HdyHeaderBar" id="header">
|
||||
<property name="show-close-button">True</property>
|
||||
<!-- Translators: This is the title of the main window -->
|
||||
<property name="title" translatable="yes">Parental Controls</property>
|
||||
|
@ -197,7 +201,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="justify">center</property>
|
||||
<property name="label" translatable="yes">Parental controls can only be applied to standard user
|
||||
accounts. These can be created in the user settings.</property>
|
||||
accounts. These can be created in the user settings.</property>
|
||||
<property name="wrap">True</property>
|
||||
<child internal-child="accessible">
|
||||
<object class="AtkObject">
|
||||
|
@ -297,6 +301,8 @@ accounts. These can be created in the user settings.</property>
|
|||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
||||
<menu id="primary-menu">
|
||||
<section>
|
||||
|
|
|
@ -28,6 +28,7 @@ malcontent_control = executable('malcontent-control',
|
|||
dependency('glib-2.0', version: '>= 2.54.2'),
|
||||
dependency('gobject-2.0', version: '>= 2.54'),
|
||||
dependency('gtk+-3.0'),
|
||||
dependency('libhandy-1', version: '>=1.1.0'),
|
||||
dependency('polkit-gobject-1'),
|
||||
libmalcontent_dep,
|
||||
libmalcontent_ui_dep,
|
||||
|
|
Loading…
Reference in New Issue