Hdy → Adw
This simply changes namespaces. Fortunately, no further widgetry changes will be necessary - all the widgets and APIs seem to have an exact match in libadwaita.
This commit is contained in:
parent
d142554ed3
commit
e322d8cd98
9 changed files with 41 additions and 41 deletions
|
@ -27,7 +27,7 @@
|
|||
#include <glib/gi18n-lib.h>
|
||||
#include <gio/gio.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <libhandy-1/handy.h>
|
||||
#include <adwaita.h>
|
||||
#include <libmalcontent-ui/malcontent-ui.h>
|
||||
#include <polkit/polkit.h>
|
||||
|
||||
|
@ -77,7 +77,7 @@ struct _MctApplication
|
|||
MctUserSelector *user_selector;
|
||||
MctUserControls *user_controls;
|
||||
GtkStack *main_stack;
|
||||
HdyStatusPage *error_page;
|
||||
AdwStatusPage *error_page;
|
||||
GtkLockButton *lock_button;
|
||||
GtkButton *user_accounts_panel_button;
|
||||
GtkLabel *help_label;
|
||||
|
@ -209,7 +209,7 @@ mct_application_activate (GApplication *application)
|
|||
self->main_stack = GTK_STACK (gtk_builder_get_object (builder, "main_stack"));
|
||||
self->user_selector = MCT_USER_SELECTOR (gtk_builder_get_object (builder, "user_selector"));
|
||||
self->user_controls = MCT_USER_CONTROLS (gtk_builder_get_object (builder, "user_controls"));
|
||||
self->error_page = HDY_STATUS_PAGE (gtk_builder_get_object (builder, "error_page"));
|
||||
self->error_page = ADW_STATUS_PAGE (gtk_builder_get_object (builder, "error_page"));
|
||||
self->lock_button = GTK_LOCK_BUTTON (gtk_builder_get_object (builder, "lock_button"));
|
||||
self->user_accounts_panel_button = GTK_BUTTON (gtk_builder_get_object (builder, "user_accounts_panel_button"));
|
||||
|
||||
|
@ -248,7 +248,7 @@ mct_application_startup (GApplication *application)
|
|||
/* Chain up. */
|
||||
G_APPLICATION_CLASS (mct_application_parent_class)->startup (application);
|
||||
|
||||
hdy_init ();
|
||||
adw_init ();
|
||||
|
||||
g_action_map_add_action_entries (G_ACTION_MAP (application), app_entries,
|
||||
G_N_ELEMENTS (app_entries), application);
|
||||
|
@ -371,9 +371,9 @@ update_main_stack (MctApplication *self)
|
|||
if ((is_user_manager_loaded && act_user_manager_no_service (self->user_manager)) ||
|
||||
self->permission_error != NULL)
|
||||
{
|
||||
hdy_status_page_set_title (self->error_page,
|
||||
adw_status_page_set_title (self->error_page,
|
||||
_("Failed to load user data from the system"));
|
||||
hdy_status_page_set_description (self->error_page,
|
||||
adw_status_page_set_description (self->error_page,
|
||||
_("Please make sure that the AccountsService is installed and enabled."));
|
||||
|
||||
new_page_name = "error";
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
<!-- Copyright © 2019, 2020 Endless Mobile, Inc. -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.12"/>
|
||||
<object class="HdyApplicationWindow" id="main_window">
|
||||
<object class="AdwApplicationWindow" id="main_window">
|
||||
<property name="default-width">540</property>
|
||||
<property name="default-height">580</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="HdyHeaderBar" id="header">
|
||||
<object class="AdwHeaderBar" 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>
|
||||
|
@ -65,7 +65,7 @@
|
|||
</child>
|
||||
|
||||
<child>
|
||||
<object class="HdyStatusPage">
|
||||
<object class="AdwStatusPage">
|
||||
<property name="title" translatable="yes">Permission Required</property>
|
||||
<property name="description" translatable="yes">Permission is required to view and change user parental controls settings.</property>
|
||||
<property name="icon-name">org.freedesktop.MalcontentControl</property>
|
||||
|
@ -83,7 +83,7 @@
|
|||
</child>
|
||||
|
||||
<child>
|
||||
<object class="HdyStatusPage">
|
||||
<object class="AdwStatusPage">
|
||||
<property name="icon-name">system-users-symbolic</property>
|
||||
<property name="title" translatable="yes">No Standard User Accounts</property>
|
||||
<property name="description" translatable="yes">Parental controls can only be applied to standard user
|
||||
|
@ -126,7 +126,7 @@
|
|||
</child>
|
||||
|
||||
<child>
|
||||
<object class="HdyStatusPage" id="error_page">
|
||||
<object class="AdwStatusPage" id="error_page">
|
||||
<property name="icon-name">dialog-error-symbolic</property>
|
||||
</object>
|
||||
<packing>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue