aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-02-24 15:56:58 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-02-24 15:56:58 +0800
commitca852ba2dea7c1716d22aa919dab07ca0b76d8ee (patch)
tree196e08fa454556d1a78a6ee01ca9144d7b55aaf1
parent8aa156cae015b9b971255916681f6971c028b25e (diff)
downloadgsoc2013-evolution-ca852ba2dea7c1716d22aa919dab07ca0b76d8ee.tar.gz
gsoc2013-evolution-ca852ba2dea7c1716d22aa919dab07ca0b76d8ee.tar.zst
gsoc2013-evolution-ca852ba2dea7c1716d22aa919dab07ca0b76d8ee.zip
Fixed bug #332408
svn path=/trunk/; revision=31575
-rw-r--r--widgets/table/ChangeLog9
-rw-r--r--widgets/table/e-table-config.c47
2 files changed, 56 insertions, 0 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog
index 590c5ca5eb..6bb2698e4e 100644
--- a/widgets/table/ChangeLog
+++ b/widgets/table/ChangeLog
@@ -1,3 +1,12 @@
+2006-02-24 Srinivasa Ragavan <sragavan@novell.com>
+
+ ** Fixes bug #332408
+
+ * e-table-config.c: (e_table_proxy_etable_shown_new),
+ (e_table_proxy_etable_available_new): Reverting the patch that fixes
+ some compiler warning. The function is referred from the glade file,
+ which was removed.
+
2006-02-14 Srinivasa Ragavan <sragavan@novell.com>
** Fixes bug #328283
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index 38d52b15ab..d7553e8804 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -539,6 +539,53 @@ create_global_store (ETableConfig *config)
}
}
+char *spec = "<ETableSpecification gettext-domain=\"" E_I18N_DOMAIN "\" no-headers=\"true\" cursor-mode=\"line\" "
+" draw-grid=\"false\" draw-focus=\"true\" selection-mode=\"browse\">"
+"<ETableColumn model_col= \"0\" _title=\"Name\" minimum_width=\"30\" resizable=\"true\" cell=\"string\" compare=\"string\"/>"
+"<ETableState> <column source=\"0\"/>"
+"<grouping/>"
+"</ETableState>"
+"</ETableSpecification>";
+
+GtkWidget *e_table_proxy_etable_shown_new (void);
+
+GtkWidget *
+e_table_proxy_etable_shown_new (void)
+{
+ ETableModel *model = NULL;
+ GtkWidget *widget;
+ ETableScrolled *ets;
+
+ model = e_table_subset_variable_new (global_store);
+
+ widget = e_table_scrolled_new (model, NULL, spec, NULL);
+ ets = E_TABLE_SCROLLED (widget);
+ atk_object_set_name (gtk_widget_get_accessible ((GtkWidget *)ets->table), _("Show Fields"));
+
+ return widget;
+}
+
+GtkWidget *e_table_proxy_etable_available_new (void);
+
+GtkWidget *
+e_table_proxy_etable_available_new (void)
+{
+ ETableModel *model;
+ GtkWidget *widget;
+ ETableScrolled *ets;
+
+ model = e_table_without_new (global_store,
+ NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+
+ e_table_without_show_all (E_TABLE_WITHOUT (model));
+
+ widget = e_table_scrolled_new (model, NULL, spec, NULL);
+ ets = E_TABLE_SCROLLED (widget);
+ atk_object_set_name (gtk_widget_get_accessible ((GtkWidget *)ets->table), _("Available Fields"));
+
+ return widget;
+}
+
static void
config_button_fields (GtkWidget *widget, ETableConfig *config)
{