[gnome-todo] project: disable source selection



commit 443745e729ade01afbd01aeba09d01c704fffb76
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Aug 28 09:38:44 2015 -0300

    project: disable source selection
    
    Since we can't create sources on remote locations,
    it's not a good idea to show this option when it
    doesn't work.
    
    Hide the options so they are unaccessible from
    UI.

 data/gtk/menus.ui          |    2 ++
 data/ui/storage-popover.ui |    1 +
 src/gtd-application.c      |   14 ++++++--------
 3 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/data/gtk/menus.ui b/data/gtk/menus.ui
index 0b1fbeb..d312903 100644
--- a/data/gtk/menus.ui
+++ b/data/gtk/menus.ui
@@ -8,10 +8,12 @@
         <attribute name="action">win.new-list</attribute>
         <attribute name="accel">&lt;Primary&gt;n</attribute>
       </item>
+      <!--
       <item>
         <attribute name="label" translatable="yes">Change default storage location…</attribute>
         <attribute name="action">win.change-storage</attribute>
       </item>
+      -->
     </section>
     <section>
       <item>
diff --git a/data/ui/storage-popover.ui b/data/ui/storage-popover.ui
index af91c02..998d202 100644
--- a/data/ui/storage-popover.ui
+++ b/data/ui/storage-popover.ui
@@ -89,6 +89,7 @@
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">True</property>
+                    <property name="sensitive">False</property>
                     <signal name="clicked" handler="gtd_storage_popover__change_location_clicked" 
object="GtdStoragePopover" swapped="yes" />
                     <child>
                       <object class="GtkImage" id="location_provider_image">
diff --git a/src/gtd-application.c b/src/gtd-application.c
index 2a94009..d990fc3 100644
--- a/src/gtd-application.c
+++ b/src/gtd-application.c
@@ -147,6 +147,7 @@ run_window (GtdApplication *application)
   gtk_widget_show (priv->window);
 }
 
+/*
 static void
 finish_initial_setup (GtdApplication *application)
 {
@@ -185,14 +186,12 @@ run_initial_setup (GtdApplication *application)
 
   gtk_widget_show (priv->initial_setup);
 }
+*/
 
 static void
 gtd_application_activate (GApplication *application)
 {
   GtdApplicationPrivate *priv = GTD_APPLICATION (application)->priv;
-  gboolean first_run;
-
-  first_run = gtd_manager_get_is_first_run (priv->manager);
 
   if (!priv->provider)
    {
@@ -224,11 +223,10 @@ gtd_application_activate (GApplication *application)
        }
    }
 
-  /* If it's the first run of To Do, it should run the initial setup window */
-  if (first_run)
-    run_initial_setup (GTD_APPLICATION (application));
-  else
-    run_window (GTD_APPLICATION (application));
+  /* FIXME: the initial setup is disabled for the 3.18 release because
+   * we can't create tasklists on GOA accounts.
+   */
+  run_window (GTD_APPLICATION (application));
 }
 
 static void


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