goffice r2354 - in trunk: . goffice/graph
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: goffice r2354 - in trunk: . goffice/graph
- Date: Sat, 28 Mar 2009 14:15:41 +0000 (UTC)
Author: mortenw
Date: Sat Mar 28 14:15:40 2009
New Revision: 2354
URL: http://svn.gnome.org/viewvc/goffice?rev=2354&view=rev
Log:
2009-03-28 Morten Welinder <terra gnome org>
* goffice/graph/gog-axis.c (make_dim_editor): Simplify.
Modified:
trunk/ChangeLog
trunk/goffice/graph/gog-axis.c
Modified: trunk/goffice/graph/gog-axis.c
==============================================================================
--- trunk/goffice/graph/gog-axis.c (original)
+++ trunk/goffice/graph/gog-axis.c Sat Mar 28 14:15:40 2009
@@ -2031,11 +2031,11 @@
static void
make_dim_editor (GogDataset *set, GtkTable *table, unsigned dim,
- GogDataAllocator *dalloc, char const * const *dim_name)
+ GogDataAllocator *dalloc, char const *dim_name)
{
ElemToggleData *info;
GtkWidget *editor = gog_data_allocator_editor (dalloc, set, dim, GOG_DATA_SCALAR);
- char *txt = g_strconcat (_(dim_name[dim]), ":", NULL);
+ char *txt = g_strconcat (dim_name, ":", NULL);
GtkWidget *toggle = gtk_check_button_new_with_mnemonic (txt);
g_free (txt);
@@ -2156,7 +2156,8 @@
N_("Categories between _labels")
};
for (i = GOG_AXIS_ELEM_MIN; i < GOG_AXIS_ELEM_CROSS_POINT ; i++)
- make_dim_editor (set, table, i, dalloc, dim_names);
+ make_dim_editor (set, table, i, dalloc,
+ _(dim_names[i]));
} else {
static char const * const dim_names[] = {
N_("M_inimum"),
@@ -2166,7 +2167,8 @@
};
for (i = GOG_AXIS_ELEM_MIN; i < GOG_AXIS_ELEM_CROSS_POINT ; i++)
- make_dim_editor (set, table, i, dalloc, dim_names);
+ make_dim_editor (set, table, i, dalloc,
+ _(dim_names[i]));
}
gtk_widget_show_all (GTK_WIDGET (table));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]