projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tue Oct 31 18:21:48 2006 Ben Pfaff <blp@gnu.org>
[pspp-builds.git]
/
lib
/
gtksheet
/
gsheet-hetero-column.c
diff --git
a/lib/gtksheet/gsheet-hetero-column.c
b/lib/gtksheet/gsheet-hetero-column.c
index e4235656bbad76708a1235cd458b8b2ccce93d7e..e32f4f4aa2dbe583615c754b377f65d567989000 100644
(file)
--- a/
lib/gtksheet/gsheet-hetero-column.c
+++ b/
lib/gtksheet/gsheet-hetero-column.c
@@
-128,12
+128,12
@@
g_sheet_hetero_column_get_visibility(const GSheetColumn *geom, gint u)
-static
const
gchar *
+static gchar *
g_sheet_hetero_column_get_button_label(const GSheetColumn *geom, gint u)
{
GSheetHeteroColumn *hg = G_SHEET_HETERO_COLUMN(geom);
g_sheet_hetero_column_get_button_label(const GSheetColumn *geom, gint u)
{
GSheetHeteroColumn *hg = G_SHEET_HETERO_COLUMN(geom);
- return
hg->col[u].button.label
;
+ return
g_locale_to_utf8(hg->col[u].button.label, -1, 0, 0, 0)
;
}
}
@@
-184,12
+184,23
@@
g_sheet_hetero_column_finalize (GObject *object)
g_free(hg->col);
}
g_free(hg->col);
}
+static void
+hetero_column_set_width(GSheetColumn *geo, gint i, gint size)
+{
+ GSheetHeteroColumn *hg = G_SHEET_HETERO_COLUMN(geo);
+
+ g_return_if_fail(i < hg->n_columns);
+
+ hg->col[i].width = size;
+}
+
+
static void
g_sheet_column_init (GSheetColumnIface *iface)
{
iface->get_width = g_sheet_hetero_column_get_width ;
static void
g_sheet_column_init (GSheetColumnIface *iface)
{
iface->get_width = g_sheet_hetero_column_get_width ;
- iface->set_width =
g_sheet_
hetero_column_set_width ;
+ iface->set_width = hetero_column_set_width ;
iface->get_sensitivity = g_sheet_hetero_column_get_sensitivity ;
iface->get_visibility = g_sheet_hetero_column_get_visibility ;
iface->get_justification = g_sheet_hetero_column_get_justification;
iface->get_sensitivity = g_sheet_hetero_column_get_sensitivity ;
iface->get_visibility = g_sheet_hetero_column_get_visibility ;
iface->get_justification = g_sheet_hetero_column_get_justification;
@@
-213,13
+224,14
@@
g_sheet_hetero_column_set_button_label(GSheetHeteroColumn *geo,
-void
-g_sheet_hetero_column_set_width(GSheetHeteroColumn *geo,
-
gint i, gint size)
+
+inline void
+
g_sheet_hetero_column_set_width(GSheetHeteroColumn *geo,
gint i, gint size)
{
{
-
g_return_if_fail(i < geo->n_columns
);
+
GSheetColumn *iface = G_SHEET_COLUMN(geo
);
-
geo->col[i].width = size
;
+
hetero_column_set_width(iface, i, size)
;
}
}
+