[evolution] ETaskShellContent: Remove hard-coded default table state.



commit fd40e93f412b9429ac7d3ed1fe91fc18d064305d
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Jun 26 17:28:56 2013 -0400

    ETaskShellContent: Remove hard-coded default table state.
    
    I don't remember why E_TASK_TABLE_DEFAULT_STATE was needed when
    e-calendar-table.etspec already specifies a default ETableState.
    Some of the column numbers it was referencing weren't even valid.
    
    Removing it seems to make no difference in Evolution.

 modules/calendar/e-task-shell-content.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/modules/calendar/e-task-shell-content.c b/modules/calendar/e-task-shell-content.c
index 7bfb5b7..c4fa849 100644
--- a/modules/calendar/e-task-shell-content.c
+++ b/modules/calendar/e-task-shell-content.c
@@ -37,16 +37,6 @@
        (G_TYPE_INSTANCE_GET_PRIVATE \
        ((obj), E_TYPE_TASK_SHELL_CONTENT, ETaskShellContentPrivate))
 
-#define E_TASK_TABLE_DEFAULT_STATE \
-       "<?xml version=\"1.0\"?>" \
-       "<ETableState>" \
-       "  <column source=\"13\"/>" \
-       "  <column source=\"14\"/>" \
-       "  <column source=\"9\"/>" \
-       "  <column source=\"5\"/>" \
-       "  <grouping/>" \
-       "</ETableState>"
-
 struct _ETaskShellContentPrivate {
        GtkWidget *paned;
        GtkWidget *task_table;
@@ -515,11 +505,6 @@ task_shell_content_constructed (GObject *object)
                widget, "visible",
                G_BINDING_SYNC_CREATE);
 
-       /* Configure the task table. */
-
-       e_table_set_state (
-               E_TABLE (priv->task_table), E_TASK_TABLE_DEFAULT_STATE);
-
        target_list = gtk_target_list_new (NULL, 0);
        e_target_list_add_calendar_targets (target_list, 0);
        targets = gtk_target_table_new_from_list (target_list, &n_targets);


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