aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorTobias Mueller <muelli@auftrags-killer.org>2007-10-12 03:10:56 +0800
committerTobias Mueller <tobiasmue@src.gnome.org>2007-10-12 03:10:56 +0800
commitd04eaa26418f68ebbe3a5a52711c72272c979399 (patch)
tree24c47ba69ad015fb7aeefd5f0ba21ec174c44542 /widgets/table
parente8a9d068a1fa69fdca9a8b7b2ea1296df3b678be (diff)
downloadgsoc2013-evolution-d04eaa26418f68ebbe3a5a52711c72272c979399.tar
gsoc2013-evolution-d04eaa26418f68ebbe3a5a52711c72272c979399.tar.gz
gsoc2013-evolution-d04eaa26418f68ebbe3a5a52711c72272c979399.tar.bz2
gsoc2013-evolution-d04eaa26418f68ebbe3a5a52711c72272c979399.tar.lz
gsoc2013-evolution-d04eaa26418f68ebbe3a5a52711c72272c979399.tar.xz
gsoc2013-evolution-d04eaa26418f68ebbe3a5a52711c72272c979399.tar.zst
gsoc2013-evolution-d04eaa26418f68ebbe3a5a52711c72272c979399.zip
** Fixes bug 360134
2007-10-11 Tobias Mueller <muelli@auftrags-killer.org> ** Fixes bug 360134 * widgets/table/e-table-header-item.c: * widgets/table/e-table-field-chooser-dialog.c: * widgets/table/e-table-field-chooser-item.c: * widgets/table/e-table-field-chooser.c: * widgets/misc/e-reflow.c: Don't g_strdup strings passed to g_value_set_string since it dups the strings itself. svn path=/trunk/; revision=34377
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-field-chooser-item.c2
-rw-r--r--widgets/table/e-table-field-chooser.c2
-rw-r--r--widgets/table/e-table-header-item.c3
3 files changed, 4 insertions, 3 deletions
diff --git a/widgets/table/e-table-field-chooser-item.c b/widgets/table/e-table-field-chooser-item.c
index 4ab694f3d6..d7da7e89da 100644
--- a/widgets/table/e-table-field-chooser-item.c
+++ b/widgets/table/e-table-field-chooser-item.c
@@ -370,7 +370,7 @@ etfci_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *p
switch (prop_id){
case PROP_DND_CODE:
- g_value_set_string (value, g_strdup (etfci->dnd_code));
+ g_value_set_string (value, etfci->dnd_code);
break;
case PROP_WIDTH:
g_value_set_double (value, etfci->width);
diff --git a/widgets/table/e-table-field-chooser.c b/widgets/table/e-table-field-chooser.c
index 5d2c54e840..e3031072f6 100644
--- a/widgets/table/e-table-field-chooser.c
+++ b/widgets/table/e-table-field-chooser.c
@@ -280,7 +280,7 @@ e_table_field_chooser_get_property (GObject *object, guint prop_id, GValue *valu
switch (prop_id) {
case PROP_DND_CODE:
- g_value_set_string (value, g_strdup (etfc->dnd_code));
+ g_value_set_string (value, etfc->dnd_code);
break;
case PROP_FULL_HEADER:
g_value_set_object (value, etfc->full_header);
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index 51f3301f8f..41b4808db6 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -381,7 +381,7 @@ ethi_get_property (GObject *object,
g_value_set_object (value, ethi->full_header);
break;
case PROP_DND_CODE:
- g_value_set_string (value, g_strdup (ethi->dnd_code));
+ g_value_set_string (value, ethi->dnd_code);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -1524,6 +1524,7 @@ ethi_header_context_menu (ETableHeaderItem *ethi, GdkEventButton *event)
GtkWidget *menu_item, *sub_menu;
ETableSortColumn column;
gboolean ascending = TRUE;
+ d( g_print("ethi_header_context_menu: \n") );
info->ethi = ethi;
info->col = ethi_find_col_by_x (ethi, event->x);