[gnome-text-editor] window: use application symbolic for empty page



commit 796e5c7fae0a02b43b8f2292288f120448739267
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jan 18 13:56:30 2022 -0800

    window: use application symbolic for empty page
    
    Instead of relying on the system icon theme for text-editor-symbolic we
    can just use the icon we bundle for our application, which should roughly
    be the same anyway.
    
    Since we don't preprocess the .ui files, we need to set the application
    id manually based on stable/.devel variants.
    
    Fixes #293

 src/editor-window.c  | 2 ++
 src/editor-window.ui | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/editor-window.c b/src/editor-window.c
index 7cc1a57..4e7205a 100644
--- a/src/editor-window.c
+++ b/src/editor-window.c
@@ -940,6 +940,8 @@ editor_window_init (EditorWindow *self)
   gtk_window_set_title (GTK_WINDOW (self), _(PACKAGE_NAME));
   gtk_window_set_default_size (GTK_WINDOW (self), 700, 520);
 
+  adw_status_page_set_icon_name (ADW_STATUS_PAGE (self->empty), APP_ID"-symbolic");
+
   self->settings = g_settings_new ("org.gnome.TextEditor");
   g_signal_connect_object (self->settings,
                            "changed::show-line-numbers",
diff --git a/src/editor-window.ui b/src/editor-window.ui
index 0a42e7a..9b41806 100644
--- a/src/editor-window.ui
+++ b/src/editor-window.ui
@@ -163,7 +163,6 @@
             </child>
             <child>
               <object class="AdwStatusPage" id="empty">
-                <property name="icon-name">text-editor-symbolic</property>
                 <property name="title" translatable="yes">Start or Open a Document</property>
                 <property name="child">
                   <object class="GtkLabel">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]