[gnome-todo] Adapt to GTK4 API changes



commit 41a5bff6fd044f02a51a9ab9387a5ff55070b10f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Mar 3 16:53:36 2020 -0300

    Adapt to GTK4 API changes

 plugins/all-tasks-panel/gtd-all-tasks-panel.c |  4 +++-
 plugins/background/ui/preferences.ui          | 10 ++++++++--
 plugins/next-week-panel/gtd-next-week-panel.c |  4 +++-
 plugins/today-panel/gtd-panel-today.c         |  4 +++-
 plugins/todo-txt/gtd-plugin-todo-txt.c        |  6 +++---
 src/gtd-plugin-dialog-row.ui                  |  5 ++++-
 src/gtd-task-list-panel.ui                    |  8 ++++++--
 src/gtd-window.ui                             |  3 ++-
 src/notification/gtd-notification-widget.ui   |  2 +-
 src/provider/gtd-provider-popover.ui          |  5 ++++-
 src/provider/gtd-provider-row.ui              |  5 ++++-
 src/provider/gtd-provider-selector.ui         | 15 ++++++++++++---
 src/sidebar/gtd-sidebar-list-row.c            |  2 +-
 src/sidebar/gtd-sidebar-list-row.ui           |  5 ++++-
 src/sidebar/gtd-sidebar-panel-row.ui          |  5 ++++-
 src/sidebar/gtd-sidebar-provider-row.ui       |  2 +-
 src/sidebar/gtd-sidebar.ui                    | 14 ++++++++++----
 src/task-list-view/gtd-dnd-row.ui             |  8 ++++++--
 src/task-list-view/gtd-edit-pane.ui           |  8 ++++++--
 src/task-list-view/gtd-new-task-row.c         |  8 +++-----
 src/task-list-view/gtd-new-task-row.ui        |  5 ++---
 src/task-list-view/gtd-task-list-popover.c    |  5 ++++-
 src/task-list-view/gtd-task-list-popover.ui   |  5 ++++-
 src/task-list-view/gtd-task-list-view.c       |  6 +++---
 src/task-list-view/gtd-task-list-view.ui      |  5 +++--
 src/task-list-view/gtd-task-row.ui            |  3 ++-
 26 files changed, 106 insertions(+), 46 deletions(-)
---
diff --git a/plugins/all-tasks-panel/gtd-all-tasks-panel.c b/plugins/all-tasks-panel/gtd-all-tasks-panel.c
index 43c267c..53c5593 100644
--- a/plugins/all-tasks-panel/gtd-all-tasks-panel.c
+++ b/plugins/all-tasks-panel/gtd-all-tasks-panel.c
@@ -166,8 +166,10 @@ create_label (const gchar *text,
 
   label = g_object_new (GTK_TYPE_LABEL,
                         "label", text,
-                        "margin", 6,
                         "margin-top", first_header ? 6 : 18,
+                        "margin-bottom", 6,
+                        "margin-start", 6,
+                        "margin-end", 6,
                         "xalign", 0.0,
                         "hexpand", TRUE,
                         NULL);
diff --git a/plugins/background/ui/preferences.ui b/plugins/background/ui/preferences.ui
index eeb16a6..f1bd122 100644
--- a/plugins/background/ui/preferences.ui
+++ b/plugins/background/ui/preferences.ui
@@ -20,7 +20,10 @@
                 <property name="can_focus">1</property>
                 <child>
                   <object class="GtkGrid">
-                    <property name="margin">12</property>
+                    <property name="margin-top">12</property>
+                    <property name="margin-bottom">12</property>
+                    <property name="margin-start">12</property>
+                    <property name="margin-end">12</property>
                     <property name="column_spacing">18</property>
                     <child>
                       <object class="GtkSwitch" id="startup_switch">
@@ -77,7 +80,10 @@
                 <property name="can_focus">1</property>
                 <child>
                   <object class="GtkGrid">
-                    <property name="margin">12</property>
+                    <property name="margin-top">12</property>
+                    <property name="margin-bottom">12</property>
+                    <property name="margin-start">12</property>
+                    <property name="margin-end">12</property>
                     <property name="column_spacing">18</property>
                     <child>
                       <object class="GtkSwitch" id="notifications_switch">
diff --git a/plugins/next-week-panel/gtd-next-week-panel.c b/plugins/next-week-panel/gtd-next-week-panel.c
index 92e8f6c..3d30dc8 100644
--- a/plugins/next-week-panel/gtd-next-week-panel.c
+++ b/plugins/next-week-panel/gtd-next-week-panel.c
@@ -158,8 +158,10 @@ create_label (const gchar *text,
 
   label = g_object_new (GTK_TYPE_LABEL,
                         "label", text,
-                        "margin", 6,
                         "margin-top", first_header ? 6 : 18,
+                        "margin-bottom", 6,
+                        "margin-start", 6,
+                        "margin-end", 6,
                         "xalign", 0.0,
                         "hexpand", TRUE,
                         NULL);
diff --git a/plugins/today-panel/gtd-panel-today.c b/plugins/today-panel/gtd-panel-today.c
index 3dbe6a2..8c095ce 100644
--- a/plugins/today-panel/gtd-panel-today.c
+++ b/plugins/today-panel/gtd-panel-today.c
@@ -109,8 +109,10 @@ create_label (const gchar *text,
   label = g_object_new (GTK_TYPE_LABEL,
                         "visible", TRUE,
                         "label", text,
-                        "margin", 6,
                         "margin-top", overdue ? 6 : 18,
+                        "margin-bottom", 6,
+                        "margin-start", 6,
+                        "margin-end", 6,
                         "xalign", 0.0,
                         "hexpand", TRUE,
                         NULL);
diff --git a/plugins/todo-txt/gtd-plugin-todo-txt.c b/plugins/todo-txt/gtd-plugin-todo-txt.c
index 177c916..95c66a7 100644
--- a/plugins/todo-txt/gtd-plugin-todo-txt.c
+++ b/plugins/todo-txt/gtd-plugin-todo-txt.c
@@ -245,15 +245,15 @@ static void
 on_source_changed_cb (GtkWidget        *preference_panel,
                       GtdPluginTodoTxt *self)
 {
+  g_autoptr (GFile) file = NULL;
   GtdProviderTodoTxt *provider;
 
   GTD_ENTRY;
 
   g_clear_object (&self->source_file);
 
-  g_settings_set_string (self->settings,
-                        "file",
-                         gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (self->preferences)));
+  file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (self->preferences));
+  g_settings_set_string (self->settings, "file", g_file_peek_path (file));
 
   if (self->providers)
     {
diff --git a/src/gtd-plugin-dialog-row.ui b/src/gtd-plugin-dialog-row.ui
index fe0fb5d..bf073bf 100644
--- a/src/gtd-plugin-dialog-row.ui
+++ b/src/gtd-plugin-dialog-row.ui
@@ -5,7 +5,10 @@
     <property name="can_focus">1</property>
     <child>
       <object class="GtkGrid">
-        <property name="margin">12</property>
+        <property name="margin-top">12</property>
+        <property name="margin-bottom">12</property>
+        <property name="margin-start">12</property>
+        <property name="margin-end">12</property>
         <property name="column_spacing">12</property>
         <child>
           <object class="GtkImage" id="icon_image">
diff --git a/src/gtd-task-list-panel.ui b/src/gtd-task-list-panel.ui
index 8359d3b..fe9cdf2 100644
--- a/src/gtd-task-list-panel.ui
+++ b/src/gtd-task-list-panel.ui
@@ -14,7 +14,8 @@
         <property name="orientation">vertical</property>
         <child>
           <object class="GtkFlowBox" id="colors_flowbox">
-            <property name="expand">1</property>
+            <property name="hexpand">true</property>
+            <property name="vexpand">true</property>
             <property name="selection-mode">none</property>
             <property name="min-children-per-line">3</property>
             <property name="max-children-per-line">3</property>
@@ -55,7 +56,10 @@
         <property name="name">rename</property>
         <property name="orientation">vertical</property>
         <property name="spacing">12</property>
-        <property name="margin">12</property>
+        <property name="margin-top">12</property>
+        <property name="margin-bottom">12</property>
+        <property name="margin-start">12</property>
+        <property name="margin-end">12</property>
         <child>
           <object class="GtkModelButton" id="rename_header_button">
             <property name="text" translatable="yes">Rename</property>
diff --git a/src/gtd-window.ui b/src/gtd-window.ui
index e0be21f..89d1da2 100644
--- a/src/gtd-window.ui
+++ b/src/gtd-window.ui
@@ -26,7 +26,8 @@
             </child>
             <child>
               <object class="GtkStack" id="stack">
-                <property name="expand">1</property>
+                <property name="hexpand">true</property>
+                <property name="vexpand">true</property>
                 <property name="homogeneous">0</property>
                 <property name="transition_duration">250</property>
                 <property name="transition_type">crossfade</property>
diff --git a/src/notification/gtd-notification-widget.ui b/src/notification/gtd-notification-widget.ui
index f72bc95..6f53f5b 100644
--- a/src/notification/gtd-notification-widget.ui
+++ b/src/notification/gtd-notification-widget.ui
@@ -19,7 +19,7 @@
                 <child>
                   <object class="GtkSpinner" id="spinner">
                     <property name="visible">0</property>
-                    <property name="active">1</property>
+                    <property name="spinning">1</property>
                   </object>
                 </child>
                 <child>
diff --git a/src/provider/gtd-provider-popover.ui b/src/provider/gtd-provider-popover.ui
index aa1b997..2468b3b 100644
--- a/src/provider/gtd-provider-popover.ui
+++ b/src/provider/gtd-provider-popover.ui
@@ -5,7 +5,10 @@
     <signal name="closed" handler="gtd_provider_popover__closed" swapped="no"/>
     <child>
       <object class="GtkStack" id="stack">
-        <property name="margin">18</property>
+        <property name="margin-top">18</property>
+        <property name="margin-bottom">18</property>
+        <property name="margin-start">18</property>
+        <property name="margin-end">18</property>
         <property name="vhomogeneous">0</property>
         <property name="interpolate_size">1</property>
         <property name="transition_duration">300</property>
diff --git a/src/provider/gtd-provider-row.ui b/src/provider/gtd-provider-row.ui
index 92df65e..3be8c0a 100644
--- a/src/provider/gtd-provider-row.ui
+++ b/src/provider/gtd-provider-row.ui
@@ -6,7 +6,10 @@
     <property name="selectable">0</property>
     <child>
       <object class="GtkGrid" id="grid">
-        <property name="margin">12</property>
+        <property name="margin-top">12</property>
+        <property name="margin-bottom">12</property>
+        <property name="margin-start">12</property>
+        <property name="margin-end">12</property>
         <property name="column_spacing">12</property>
         <child>
           <object class="GtkImage" id="selected">
diff --git a/src/provider/gtd-provider-selector.ui b/src/provider/gtd-provider-selector.ui
index 146b5be..1617cde 100644
--- a/src/provider/gtd-provider-selector.ui
+++ b/src/provider/gtd-provider-selector.ui
@@ -19,7 +19,10 @@
                 <property name="tooltip_text" translatable="yes">Click to add a new Google account</property>
                 <child>
                   <object class="GtkBox" id="google_stub_row_box">
-                    <property name="margin">12</property>
+                    <property name="margin-top">12</property>
+                    <property name="margin-bottom">12</property>
+                    <property name="margin-start">12</property>
+                    <property name="margin-end">12</property>
                     <property name="spacing">12</property>
                     <child>
                       <object class="GtkImage" id="google_stub_row_icon_image">
@@ -42,7 +45,10 @@
                 <property name="tooltip_text" translatable="yes">Click to add a new ownCloud 
account</property>
                 <child>
                   <object class="GtkBox" id="box3">
-                    <property name="margin">12</property>
+                    <property name="margin-top">12</property>
+                    <property name="margin-bottom">12</property>
+                    <property name="margin-start">12</property>
+                    <property name="margin-end">12</property>
                     <property name="spacing">12</property>
                     <child>
                       <object class="GtkImage" id="image2">
@@ -65,7 +71,10 @@
                 <property name="tooltip_text" translatable="yes">Click to add a new Microsoft Exchange 
account</property>
                 <child>
                   <object class="GtkBox" id="box4">
-                    <property name="margin">12</property>
+                    <property name="margin-top">12</property>
+                    <property name="margin-bottom">12</property>
+                    <property name="margin-start">12</property>
+                    <property name="margin-end">12</property>
                     <property name="spacing">12</property>
                     <child>
                       <object class="GtkImage" id="image3">
diff --git a/src/sidebar/gtd-sidebar-list-row.c b/src/sidebar/gtd-sidebar-list-row.c
index 3655fb7..e39ae71 100644
--- a/src/sidebar/gtd-sidebar-list-row.c
+++ b/src/sidebar/gtd-sidebar-list-row.c
@@ -158,7 +158,7 @@ on_rename_popover_hidden_cb (GtkPopover        *popover,
    * list and avoid parsing any CSS for it. It's a small performance
    * improvement.
    */
-  gtk_popover_set_relative_to (popover, NULL);
+  gtk_widget_set_parent (GTK_WIDGET (popover), NULL);
 }
 
 
diff --git a/src/sidebar/gtd-sidebar-list-row.ui b/src/sidebar/gtd-sidebar-list-row.ui
index ada4894..7f1d215 100644
--- a/src/sidebar/gtd-sidebar-list-row.ui
+++ b/src/sidebar/gtd-sidebar-list-row.ui
@@ -5,7 +5,10 @@
     <property name="can_focus">1</property>
     <child>
       <object class="GtkBox">
-        <property name="margin">10</property>
+        <property name="margin-top">10</property>
+        <property name="margin-bottom">10</property>
+        <property name="margin-start">10</property>
+        <property name="margin-end">10</property>
         <property name="spacing">6</property>
         <child>
           <object class="GtkImage" id="color_icon">
diff --git a/src/sidebar/gtd-sidebar-panel-row.ui b/src/sidebar/gtd-sidebar-panel-row.ui
index b1443d5..39c0d15 100644
--- a/src/sidebar/gtd-sidebar-panel-row.ui
+++ b/src/sidebar/gtd-sidebar-panel-row.ui
@@ -5,7 +5,10 @@
     <property name="can_focus">1</property>
     <child>
       <object class="GtkBox">
-        <property name="margin">10</property>
+        <property name="margin-top">10</property>
+        <property name="margin-bottom">10</property>
+        <property name="margin-start">10</property>
+        <property name="margin-end">10</property>
         <property name="spacing">6</property>
         <child>
           <object class="GtkImage" id="panel_icon">
diff --git a/src/sidebar/gtd-sidebar-provider-row.ui b/src/sidebar/gtd-sidebar-provider-row.ui
index 2f0e484..6f2e012 100644
--- a/src/sidebar/gtd-sidebar-provider-row.ui
+++ b/src/sidebar/gtd-sidebar-provider-row.ui
@@ -39,7 +39,7 @@
                     <property name="name">spinner</property>
                     <property name="child">
                       <object class="GtkSpinner">
-                        <property name="active">1</property>
+                        <property name="spinning">true</property>
                       </object>
                     </property>
                   </object>
diff --git a/src/sidebar/gtd-sidebar.ui b/src/sidebar/gtd-sidebar.ui
index 96b69b1..e46b7f5 100644
--- a/src/sidebar/gtd-sidebar.ui
+++ b/src/sidebar/gtd-sidebar.ui
@@ -13,7 +13,8 @@
         <property name="hscrollbar-policy">never</property>
         <child>
           <object class="GtkStack" id="stack">
-            <property name="expand">1</property>
+            <property name="hexpand">true</property>
+            <property name="vexpand">true</property>
             <property name="hhomogeneous">true</property>
             <property name="vhomogeneous">false</property>
             <property name="transition-type">slide-left-right</property>
@@ -24,7 +25,8 @@
                 <property name="name">main</property>
                 <property name="child">
                   <object class="GtkListBox" id="listbox">
-                    <property name="expand">1</property>
+                    <property name="hexpand">true</property>
+                    <property name="vexpand">true</property>
                     <property name="selection_mode">browse</property>
                     <signal name="row-activated" handler="on_listbox_row_activated_cb" object="GtdSidebar" 
swapped="no"/>
 
@@ -34,7 +36,10 @@
                         <property name="can_focus">1</property>
                         <child>
                           <object class="GtkBox">
-                            <property name="margin">10</property>
+                            <property name="margin-top">10</property>
+                            <property name="margin-bottom">10</property>
+                            <property name="margin-start">10</property>
+                            <property name="margin-end">10</property>
                             <property name="spacing">6</property>
                             <child>
                               <object class="GtkImage">
@@ -77,7 +82,8 @@
                 <property name="name">archive</property>
                 <property name="child">
                   <object class="GtkListBox" id="archive_listbox">
-                    <property name="expand">1</property>
+                    <property name="hexpand">true</property>
+                    <property name="vexpand">true</property>
                     <property name="selection_mode">browse</property>
                     <signal name="row-activated" handler="on_listbox_row_activated_cb" object="GtdSidebar" 
swapped="no"/>
 
diff --git a/src/task-list-view/gtd-dnd-row.ui b/src/task-list-view/gtd-dnd-row.ui
index d5870b9..5ccf53e 100644
--- a/src/task-list-view/gtd-dnd-row.ui
+++ b/src/task-list-view/gtd-dnd-row.ui
@@ -6,12 +6,16 @@
     <property name="activatable">0</property>
     <property name="selectable">0</property>
     <property name="halign">center</property>
-    <property name="margin">3</property>
+    <property name="margin-top">3</property>
+    <property name="margin-bottom">3</property>
+    <property name="margin-start">3</property>
+    <property name="margin-end">3</property>
     <child>
       <object class="GtkBox" id="box">
         <child>
           <object class="GtkFrame" id="frame">
-            <property name="expand">1</property>
+            <property name="hexpand">true</property>
+            <property name="vexpand">true</property>
             <property name="shadow_type">none</property>
             <child>
               <object class="GtkBox">
diff --git a/src/task-list-view/gtd-edit-pane.ui b/src/task-list-view/gtd-edit-pane.ui
index 6b4fe19..3ab9fa4 100644
--- a/src/task-list-view/gtd-edit-pane.ui
+++ b/src/task-list-view/gtd-edit-pane.ui
@@ -84,7 +84,8 @@
     </child>
     <child>
       <object class="GtkScrolledWindow">
-        <property name="expand">1</property>
+        <property name="hexpand">true</property>
+        <property name="vexpand">true</property>
         <property name="can-focus">1</property>
         <property name="shadow-type">in</property>
         <property name="min-content-height">200</property>
@@ -137,7 +138,10 @@
     <child>
       <object class="GtkBox" id="date_popover_box">
         <property name="orientation">vertical</property>
-        <property name="margin">12</property>
+        <property name="margin-top">12</property>
+        <property name="margin-bottom">12</property>
+        <property name="margin-start">12</property>
+        <property name="margin-end">12</property>
         <property name="spacing">12</property>
         <child>
           <object class="GtkCalendar" id="calendar">
diff --git a/src/task-list-view/gtd-new-task-row.c b/src/task-list-view/gtd-new-task-row.c
index 6dc8b6b..2293020 100644
--- a/src/task-list-view/gtd-new-task-row.c
+++ b/src/task-list-view/gtd-new-task-row.c
@@ -166,10 +166,8 @@ on_entry_icon_released_cb (GtkEntry             *entry,
 }
 
 static void
-on_focus_in_cb (GtkEventControllerKey *event_controller,
-                GdkCrossingMode        mode,
-                GdkNotifyType          detail,
-                GtdNewTaskRow         *self)
+on_focus_enter_cb (GtkEventControllerKey *event_controller,
+                   GtdNewTaskRow         *self)
 {
   GTD_ENTRY;
 
@@ -269,7 +267,7 @@ gtd_new_task_row_class_init (GtdNewTaskRowClass *klass)
 
   gtk_widget_class_bind_template_callback (widget_class, entry_activated_cb);
   gtk_widget_class_bind_template_callback (widget_class, on_entry_icon_released_cb);
-  gtk_widget_class_bind_template_callback (widget_class, on_focus_in_cb);
+  gtk_widget_class_bind_template_callback (widget_class, on_focus_enter_cb);
   gtk_widget_class_bind_template_callback (widget_class, on_tasklist_popover_changed_cb);
   gtk_widget_class_bind_template_callback (widget_class, on_tasklist_popover_closed_cb);
 
diff --git a/src/task-list-view/gtd-new-task-row.ui b/src/task-list-view/gtd-new-task-row.ui
index 7df7343..6113ed3 100644
--- a/src/task-list-view/gtd-new-task-row.ui
+++ b/src/task-list-view/gtd-new-task-row.ui
@@ -16,8 +16,8 @@
         <signal name="activate" handler="entry_activated_cb" object="GtdNewTaskRow" swapped="yes"/>
         <signal name="icon-release" handler="on_entry_icon_released_cb" object="GtdNewTaskRow" swapped="no"/>
         <child>
-          <object class="GtkEventControllerKey">
-            <signal name="focus-in" handler="on_focus_in_cb" object="GtdNewTaskRow" swapped="no"/>
+          <object class="GtkEventControllerFocus">
+            <signal name="enter" handler="on_focus_enter_cb" object="GtdNewTaskRow" swapped="no"/>
           </object>
         </child>
       </object>
@@ -25,7 +25,6 @@
   </template>
   <object class="GtdTaskListPopover" id="tasklist_popover">
     <property name="can_focus">False</property>
-    <property name="relative-to">entry</property>
     <signal name="notify::task-list" handler="on_tasklist_popover_changed_cb" object="GtdNewTaskRow" 
swapped="no"/>
     <signal name="closed" handler="on_tasklist_popover_closed_cb" object="GtdNewTaskRow" swapped="no" 
after="yes"/>
   </object>
diff --git a/src/task-list-view/gtd-task-list-popover.c b/src/task-list-view/gtd-task-list-popover.c
index 38df57f..706aff0 100644
--- a/src/task-list-view/gtd-task-list-popover.c
+++ b/src/task-list-view/gtd-task-list-popover.c
@@ -113,7 +113,10 @@ create_list_row_cb (gpointer item,
   box = g_object_new (GTK_TYPE_BOX,
                       "orientation", GTK_ORIENTATION_HORIZONTAL,
                       "spacing", 12,
-                      "margin", 6,
+                      "margin-top", 6,
+                      "margin-bottom", 6,
+                      "margin-start", 6,
+                      "margin-end", 6,
                       NULL);
 
   /* Icon */
diff --git a/src/task-list-view/gtd-task-list-popover.ui b/src/task-list-view/gtd-task-list-popover.ui
index 3b3a609..9a8cc9e 100644
--- a/src/task-list-view/gtd-task-list-popover.ui
+++ b/src/task-list-view/gtd-task-list-popover.ui
@@ -4,7 +4,10 @@
     <signal name="closed" handler="on_popover_closed_cb" object="GtdTaskListPopover" swapped="no"/>
     <child>
       <object class="GtkBox">
-        <property name="margin">18</property>
+        <property name="margin-top">18</property>
+        <property name="margin-bottom">18</property>
+        <property name="margin-start">18</property>
+        <property name="margin-end">18</property>
         <property name="spacing">12</property>
         <property name="orientation">vertical</property>
         <child>
diff --git a/src/task-list-view/gtd-task-list-view.c b/src/task-list-view/gtd-task-list-view.c
index 2ccc31a..54d498e 100644
--- a/src/task-list-view/gtd-task-list-view.c
+++ b/src/task-list-view/gtd-task-list-view.c
@@ -857,12 +857,12 @@ on_drop_target_drag_motion_cb (GtkDropTarget   *drop_target,
   priv->highlighted_row = highlighted_row;
 
 success:
-  gdk_drop_status (drop, GDK_ACTION_MOVE);
+  gdk_drop_status (drop, GDK_ACTION_MOVE, GDK_ACTION_MOVE);
   check_dnd_scroll (self, FALSE, y);
   GTD_RETURN ();
 
 fail:
-  gdk_drop_status (drop, 0);
+  gdk_drop_status (drop, 0, 0);
   GTD_RETURN ();
 }
 
@@ -1210,7 +1210,7 @@ gtd_task_list_view_init (GtdTaskListView *self)
 
   gtk_widget_init_template (GTK_WIDGET (self));
 
-  target = gtk_drop_target_new (_gtd_get_content_formats (), GDK_ACTION_MOVE);
+  target = gtk_drop_target_new (GTD_TYPE_TASK, GDK_ACTION_MOVE);
   g_signal_connect (target, "accept", G_CALLBACK (on_drop_target_accept_cb), self);
   g_signal_connect (target, "drag-drop", G_CALLBACK (on_drop_target_drag_drop_cb), self);
   g_signal_connect (target, "drag-leave", G_CALLBACK (on_drop_target_drag_leave_cb), self);
diff --git a/src/task-list-view/gtd-task-list-view.ui b/src/task-list-view/gtd-task-list-view.ui
index 2828800..1840e15 100644
--- a/src/task-list-view/gtd-task-list-view.ui
+++ b/src/task-list-view/gtd-task-list-view.ui
@@ -14,7 +14,8 @@
         <child>
           <object class="GtkStack" id="stack">
             <property name="homogeneous">0</property>
-            <property name="expand">1</property>
+            <property name="hexpand">true</property>
+            <property name="vexpand">true</property>
             <property name="transition-type">crossfade</property>
             <child>
               <object class="GtkStackPage">
@@ -52,7 +53,7 @@
                 <property name="name">loading</property>
                 <property name="child">
                   <object class="GtkSpinner">
-                    <property name="active">1</property>
+                    <property name="spinning">true</property>
                     <property name="width-request">96</property>
                     <property name="height-request">96</property>
                   </object>
diff --git a/src/task-list-view/gtd-task-row.ui b/src/task-list-view/gtd-task-row.ui
index b8fd25a..304b9d9 100644
--- a/src/task-list-view/gtd-task-row.ui
+++ b/src/task-list-view/gtd-task-row.ui
@@ -110,7 +110,8 @@
         <child>
           <object class="GtkBox" id="dnd_frame">
             <property name="visible">0</property>
-            <property name="expand">1</property>
+            <property name="hexpand">true</property>
+            <property name="vexpand">true</property>
             <property name="margin-start">48</property>
             <style>
               <class name="dnd"/>


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