mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-12 07:37:35 +00:00
resources: Use /org/gnome prefix and adapt to changes
In preparation to moving to GNOME all the IDs, DBus object paths, etc should change.
This commit is contained in:
parent
bd9dd8475f
commit
6e371d2f3f
13 changed files with 15 additions and 15 deletions
|
@ -409,7 +409,7 @@ startup (GApplication *application)
|
||||||
manager_state_changed_cb (application);
|
manager_state_changed_cb (application);
|
||||||
|
|
||||||
provider = gtk_css_provider_new ();
|
provider = gtk_css_provider_new ();
|
||||||
gtk_css_provider_load_from_resource (provider, "/sm/puri/calls/style.css");
|
gtk_css_provider_load_from_resource (provider, "/org/gnome/Calls/style.css");
|
||||||
gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
|
gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
|
||||||
GTK_STYLE_PROVIDER (provider),
|
GTK_STYLE_PROVIDER (provider),
|
||||||
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
|
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
|
||||||
|
|
|
@ -485,7 +485,7 @@ calls_call_display_class_init (CallsCallDisplayClass *klass)
|
||||||
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
|
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
|
||||||
|
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/sm/puri/calls/ui/call-display.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/Calls/ui/call-display.ui");
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsCallDisplay, incoming_phone_call);
|
gtk_widget_class_bind_template_child (widget_class, CallsCallDisplay, incoming_phone_call);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsCallDisplay, primary_contact_info);
|
gtk_widget_class_bind_template_child (widget_class, CallsCallDisplay, primary_contact_info);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsCallDisplay, secondary_contact_info);
|
gtk_widget_class_bind_template_child (widget_class, CallsCallDisplay, secondary_contact_info);
|
||||||
|
|
|
@ -520,7 +520,7 @@ calls_call_record_row_class_init (CallsCallRecordRowClass *klass)
|
||||||
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
|
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
|
||||||
|
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/sm/puri/calls/ui/call-record-row.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/Calls/ui/call-record-row.ui");
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsCallRecordRow, avatar);
|
gtk_widget_class_bind_template_child (widget_class, CallsCallRecordRow, avatar);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsCallRecordRow, type);
|
gtk_widget_class_bind_template_child (widget_class, CallsCallRecordRow, type);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsCallRecordRow, target);
|
gtk_widget_class_bind_template_child (widget_class, CallsCallRecordRow, target);
|
||||||
|
|
|
@ -179,7 +179,7 @@ calls_call_selector_item_class_init (CallsCallSelectorItemClass *klass)
|
||||||
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
|
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
|
||||||
|
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/sm/puri/calls/ui/call-selector-item.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/Calls/ui/call-selector-item.ui");
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsCallSelectorItem, main_box);
|
gtk_widget_class_bind_template_child (widget_class, CallsCallSelectorItem, main_box);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsCallSelectorItem, name);
|
gtk_widget_class_bind_template_child (widget_class, CallsCallSelectorItem, name);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsCallSelectorItem, status);
|
gtk_widget_class_bind_template_child (widget_class, CallsCallSelectorItem, status);
|
||||||
|
|
|
@ -577,7 +577,7 @@ calls_call_window_class_init (CallsCallWindowClass *klass)
|
||||||
object_class->notify = notify;
|
object_class->notify = notify;
|
||||||
#endif // CALLS_WAYLAND
|
#endif // CALLS_WAYLAND
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/sm/puri/calls/ui/call-window.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/Calls/ui/call-window.ui");
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsCallWindow, in_app_notification);
|
gtk_widget_class_bind_template_child (widget_class, CallsCallWindow, in_app_notification);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsCallWindow, main_stack);
|
gtk_widget_class_bind_template_child (widget_class, CallsCallWindow, main_stack);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsCallWindow, header_bar_stack);
|
gtk_widget_class_bind_template_child (widget_class, CallsCallWindow, header_bar_stack);
|
||||||
|
|
|
@ -145,7 +145,7 @@ calls_contacts_box_class_init (CallsContactsBoxClass *klass)
|
||||||
{
|
{
|
||||||
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
|
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/sm/puri/calls/ui/contacts-box.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/Calls/ui/contacts-box.ui");
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsContactsBox, contacts_listbox);
|
gtk_widget_class_bind_template_child (widget_class, CallsContactsBox, contacts_listbox);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsContactsBox, contacts_frame);
|
gtk_widget_class_bind_template_child (widget_class, CallsContactsBox, contacts_frame);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsContactsBox, search_entry);
|
gtk_widget_class_bind_template_child (widget_class, CallsContactsBox, search_entry);
|
||||||
|
|
|
@ -127,7 +127,7 @@ calls_contacts_row_class_init (CallsContactsRowClass *klass)
|
||||||
object_class->dispose = calls_contacts_row_dispose;
|
object_class->dispose = calls_contacts_row_dispose;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class,
|
gtk_widget_class_set_template_from_resource (widget_class,
|
||||||
"/sm/puri/calls/"
|
"/org/gnome/Calls/"
|
||||||
"ui/contacts-row.ui");
|
"ui/contacts-row.ui");
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsContactsRow, avatar);
|
gtk_widget_class_bind_template_child (widget_class, CallsContactsRow, avatar);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsContactsRow, title);
|
gtk_widget_class_bind_template_child (widget_class, CallsContactsRow, title);
|
||||||
|
|
|
@ -131,7 +131,7 @@ calls_encryption_indicator_class_init (CallsEncryptionIndicatorClass *klass)
|
||||||
G_PARAM_READWRITE);
|
G_PARAM_READWRITE);
|
||||||
|
|
||||||
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
|
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/sm/puri/calls/ui/encryption-indicator.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/Calls/ui/encryption-indicator.ui");
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsEncryptionIndicator, is_not_encrypted);
|
gtk_widget_class_bind_template_child (widget_class, CallsEncryptionIndicator, is_not_encrypted);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsEncryptionIndicator, is_encrypted);
|
gtk_widget_class_bind_template_child (widget_class, CallsEncryptionIndicator, is_encrypted);
|
||||||
}
|
}
|
||||||
|
|
|
@ -226,7 +226,7 @@ calls_history_box_class_init (CallsHistoryBoxClass *klass)
|
||||||
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
|
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
|
||||||
|
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/sm/puri/calls/ui/history-box.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/Calls/ui/history-box.ui");
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsHistoryBox, history);
|
gtk_widget_class_bind_template_child (widget_class, CallsHistoryBox, history);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,7 @@ calls_in_app_notification_class_init (CallsInAppNotificationClass *klass)
|
||||||
|
|
||||||
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
|
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/sm/puri/calls/ui/in-app-notification.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/Calls/ui/in-app-notification.ui");
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsInAppNotification, label);
|
gtk_widget_class_bind_template_child (widget_class, CallsInAppNotification, label);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, calls_in_app_notification_hide);
|
gtk_widget_class_bind_template_callback (widget_class, calls_in_app_notification_hide);
|
||||||
}
|
}
|
||||||
|
|
|
@ -466,7 +466,7 @@ calls_main_window_class_init (CallsMainWindowClass *klass)
|
||||||
|
|
||||||
widget_class->size_allocate = size_allocate;
|
widget_class->size_allocate = size_allocate;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/sm/puri/calls/ui/main-window.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/Calls/ui/main-window.ui");
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsMainWindow, in_app_notification);
|
gtk_widget_class_bind_template_child (widget_class, CallsMainWindow, in_app_notification);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsMainWindow, title_switcher);
|
gtk_widget_class_bind_template_child (widget_class, CallsMainWindow, title_switcher);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsMainWindow, main_stack);
|
gtk_widget_class_bind_template_child (widget_class, CallsMainWindow, main_stack);
|
||||||
|
|
|
@ -270,7 +270,7 @@ calls_new_call_box_class_init (CallsNewCallBoxClass *klass)
|
||||||
|
|
||||||
object_class->dispose = dispose;
|
object_class->dispose = dispose;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/sm/puri/calls/ui/new-call-box.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/Calls/ui/new-call-box.ui");
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsNewCallBox, origin_list_box);
|
gtk_widget_class_bind_template_child (widget_class, CallsNewCallBox, origin_list_box);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsNewCallBox, origin_list);
|
gtk_widget_class_bind_template_child (widget_class, CallsNewCallBox, origin_list);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CallsNewCallBox, backspace);
|
gtk_widget_class_bind_template_child (widget_class, CallsNewCallBox, backspace);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<gresources>
|
<gresources>
|
||||||
<gresource prefix="/sm/puri/calls/ui">
|
<gresource prefix="/org/gnome/Calls/ui">
|
||||||
<file preprocess="xml-stripblanks">main-window.ui</file>
|
<file preprocess="xml-stripblanks">main-window.ui</file>
|
||||||
<file preprocess="xml-stripblanks">call-display.ui</file>
|
<file preprocess="xml-stripblanks">call-display.ui</file>
|
||||||
<file preprocess="xml-stripblanks">call-selector-item.ui</file>
|
<file preprocess="xml-stripblanks">call-selector-item.ui</file>
|
||||||
|
@ -15,10 +15,10 @@
|
||||||
<file preprocess="xml-stripblanks">contacts-row.ui</file>
|
<file preprocess="xml-stripblanks">contacts-row.ui</file>
|
||||||
<file preprocess="xml-stripblanks">contacts-box.ui</file>
|
<file preprocess="xml-stripblanks">contacts-box.ui</file>
|
||||||
</gresource>
|
</gresource>
|
||||||
<gresource prefix="/sm/puri/calls/">
|
<gresource prefix="/org/gnome/Calls/">
|
||||||
<file>style.css</file>
|
<file>style.css</file>
|
||||||
</gresource>
|
</gresource>
|
||||||
<gresource prefix="/sm/puri/Calls/icons/">
|
<gresource prefix="/org/gnome/Calls/icons/">
|
||||||
<file>new-call-symbolic.svg</file>
|
<file>new-call-symbolic.svg</file>
|
||||||
<file>call-arrow-incoming-symbolic.svg</file>
|
<file>call-arrow-incoming-symbolic.svg</file>
|
||||||
<file>call-arrow-incoming-missed-symbolic.svg</file>
|
<file>call-arrow-incoming-missed-symbolic.svg</file>
|
||||||
|
|
Loading…
Reference in a new issue