aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
authorMatthew Loper <mloper@src.gnome.org>2000-04-16 05:51:58 +0800
committerMatthew Loper <mloper@src.gnome.org>2000-04-16 05:51:58 +0800
commita0cca95826028dc5d170dc54c71de5966eb9206a (patch)
tree668b0eedb67464183997ee2fafb3e646b5c10e8a /widgets/table/e-table.c
parentd29f61b215e4f706d214b534a6a43296e9dbe124 (diff)
downloadgsoc2013-evolution-a0cca95826028dc5d170dc54c71de5966eb9206a.tar.gz
gsoc2013-evolution-a0cca95826028dc5d170dc54c71de5966eb9206a.tar.zst
gsoc2013-evolution-a0cca95826028dc5d170dc54c71de5966eb9206a.zip
+ * addressbook/gui/component/addressbook.c
+ (search_entry_activated): New function. Gets called when the quick + search entry is called on to perform a search. + (make_quick_search_widget): New function; returns a "quick search" + widget. + (control_activate): During the construction of the toolbar, a + "quick search" widget is included. + + * e-table.c (et_xml_to_header): sanity-check our parameters. + (et_grouping_xml_to_sort_info): same. + (et_real_construct): Bail if we couldn't get the children we + wanted. svn path=/trunk/; revision=2455
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r--widgets/table/e-table.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index d6b594d12f..ee6014d728 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -706,6 +706,10 @@ et_xml_to_header (ETable *e_table, ETableHeader *full_header, xmlNode *xmlColumn
ETableHeader *nh;
xmlNode *column;
const int max_cols = e_table_header_count (full_header);
+
+ g_return_val_if_fail (e_table, NULL);
+ g_return_val_if_fail (full_header, NULL);
+ g_return_val_if_fail (xmlColumns, NULL);
nh = e_table_header_new ();
@@ -725,6 +729,10 @@ static void
et_grouping_xml_to_sort_info (ETable *table, xmlNode *grouping)
{
int i;
+
+ g_return_if_fail (table!=NULL);
+ g_return_if_fail (grouping!=NULL);
+
table->sort_info = e_table_sort_info_new ();
gtk_object_ref (GTK_OBJECT (table->sort_info));
@@ -771,9 +779,14 @@ et_real_construct (ETable *e_table, ETableHeader *full_header, ETableModel *etm,
gtk_object_ref (GTK_OBJECT (etm));
xmlRoot = xmlDocGetRootElement (xmlSpec);
+
xmlColumns = e_xml_get_child_by_name (xmlRoot, "columns-shown");
xmlGrouping = e_xml_get_child_by_name (xmlRoot, "grouping");
+ /* TODO: unref the etm and full_header, if these things fail? */
+ g_return_if_fail (xmlColumns);
+ g_return_if_fail (xmlGrouping);
+
gtk_widget_push_visual (gdk_rgb_get_visual ());
gtk_widget_push_colormap (gdk_rgb_get_cmap ());