Commit 8b9ec736 authored by Chema Celorio's avatar Chema Celorio Committed by Jose Maria Celorio

try to fix gettext support. Duno why translations are not working. Feel

2001-08-11  Chema Celorio  <chema@celorio.com>

	* src/glade.h: try to fix gettext support. Duno why translations are not
	working. Feel free to fix it ;-).

	* src/glade-widget.c (glade_property_refresh): implement
	(glade_widget_new): clean widget creation
	(glade_widget_new_full): ditto
	(glade_widget_get_from_gtk_widget): ditto
	(glade_widget_apply_property_from_node): impl.
	(glade_widget_new_from_node): impl.

	* src/glade-property.c : port to GValue
	* src/glade-property.h: ditto

	* src/glade-property-class.c : port to GValue
	* src/glade-property-class.h : ditto

	* src/glade-project.c (glade_project_new_from_node): implement.
	(glade_project_open_from_file): implement.
	(glade_project_open): implemnt.

	* src/glade-project-view.h (struct _GladeProjectViewClass): add a
	selection_update signal.

	* src/glade-project-view.c (glade_project_view_populate_model_real): add a
	add_childs parameter
	(glade_project_view_selection_update): implment (not yet working)

	* src/glade-parameter.c (glade_parameter_adjustment_new): port to GValue

	* src/glade-palette.c (glade_palette_clear): impl.

	* src/glade-gtk.c: port to GValue from string
	(glade_gtk_box_set_size): impl.

	* src/glade-editor.c (glade_editor_property_changed_*): use g_property_set_foo
	rather than g_property_changed_foo.
	port to GValues from string

	* src/glade-choice.c (glade_choice_list_new_from_node): use _TAG_ENUM and
	not _CHOICES

	* src/glade-catalog.c: remove <config.h>

	* src/Makefile.am (SUBDIRS): remove tests
parent b2a8539c
2001-08-11 Chema Celorio <chema@celorio.com>
* src/glade.h: try to fix gettext support. Duno why translations are not
working. Feel free to fix it ;-).
* src/glade-widget.c (glade_property_refresh): implement
(glade_widget_new): clean widget creation
(glade_widget_new_full): ditto
(glade_widget_get_from_gtk_widget): ditto
(glade_widget_apply_property_from_node): impl.
(glade_widget_new_from_node): impl.
* src/glade-property.c : port to GValue
* src/glade-property.h: ditto
* src/glade-property-class.c : port to GValue
* src/glade-property-class.h : ditto
* src/glade-project.c (glade_project_new_from_node): implement.
(glade_project_open_from_file): implement.
(glade_project_open): implemnt.
* src/glade-project-view.h (struct _GladeProjectViewClass): add a
selection_update signal.
* src/glade-project-view.c (glade_project_view_populate_model_real): add a
add_childs parameter
(glade_project_view_selection_update): implment (not yet working)
* src/glade-parameter.c (glade_parameter_adjustment_new): port to GValue
* src/glade-palette.c (glade_palette_clear): impl.
* src/glade-gtk.c: port to GValue from string
(glade_gtk_box_set_size): impl.
* src/glade-editor.c (glade_editor_property_changed_*): use g_property_set_foo
rather than g_property_changed_foo.
port to GValues from string
* src/glade-choice.c (glade_choice_list_new_from_node): use _TAG_ENUM and
not _CHOICES
* src/glade-catalog.c: remove <config.h>
* src/Makefile.am (SUBDIRS): remove tests
2001-08-07 Chema Celorio <chema@celorio.com>
* src/glade-widget.c (glade_widget_property_changed_cb): add a temp hack to set
......
......@@ -37,6 +37,15 @@ that specifies a file.
- Implement the about box.
- Adding new widgets
Short term
----------
- Finish GValue choices
- Implement the -1 spinbutton
- Read packing defaults from xml files
- Fix SpinButton->adjustment object
- cut/copy/paste
- undo/redo
NOT-SO-EASY TO IMPLEMENT ITEMS
------------------------------
This items may prove tricky to implement if they are "done right"
......
......@@ -26,7 +26,7 @@ dnl ========================================================
dnl Check for gtk-2.0
dnl ========================================================
check_module="gtk+-2.0"
check_version="1.3.5"
check_version="1.3.7"
dnl ====================
check_version_num=`echo "$check_version" | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
AC_MSG_CHECKING(for $check_module library => $check_version)
......@@ -157,13 +157,13 @@ AC_SUBST(widgetsdir)
AC_OUTPUT([
Makefile
src/Makefile
macros/Makefile
intl/Makefile
pixmaps/Makefile
widgets/Makefile
po/Makefile.in
])
src/Makefile
],[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])
echo "
......
......@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2001-07-03 00:13-0500\n"
"POT-Creation-Date: 2001-08-11 17:03-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -21,3 +21,160 @@ msgstr ""
#: glade2.desktop.in.h:2
msgid "Glade"
msgstr ""
#: src/main.c:70
msgid ""
"gmodule support not found. gmodule support is requiered for glade to work"
msgstr ""
#: src/main.c:112
msgid "Translate me\n"
msgstr "Traduceme"
#: src/glade-editor.c:140
msgid "Properties"
msgstr ""
#: src/glade-editor.c:145
msgid "Widget"
msgstr ""
#: src/glade-editor.c:146
msgid "Packing"
msgstr "Packeoooo"
#: src/glade-editor.c:147
msgid "Common"
msgstr ""
#: src/glade-editor.c:148 src/glade-signal-editor.c:86
msgid "Signals"
msgstr ""
#: src/glade-editor.c:553 src/glade-signal-editor.c:234
#: src/glade-signal-editor.c:273 src/glade-signal-editor.c:586
msgid "No"
msgstr ""
#. Name
#: src/glade-editor.c:657
msgid "Name :"
msgstr "Nombre :"
#. Class
#: src/glade-editor.c:670
msgid "Class :"
msgstr ""
#: src/glade-palette.c:269
msgid "Palette"
msgstr ""
#: src/glade-popup.c:79
msgid "Select"
msgstr ""
#: src/glade-popup.c:81
msgid "Cut"
msgstr ""
#: src/glade-popup.c:83
msgid "Copy"
msgstr ""
#: src/glade-popup.c:85
msgid "Paste"
msgstr ""
#: src/glade-popup.c:88 src/glade-signal-editor.c:637
msgid "Delete"
msgstr ""
#: src/glade-project-window.c:356
msgid "Widget Tree"
msgstr ""
#: src/glade-project.c:544
msgid "Save ..."
msgstr ""
#: src/glade-project.c:547
msgid "Invalid file name"
msgstr ""
#: src/glade-project.c:570
msgid "Open ..."
msgstr "Abrir ..."
#: src/glade-project.c:578
msgid "Could not open project."
msgstr ""
#: src/glade-property-class.c:589 src/glade-widget-class.c:173
#, c-format
msgid "We could not find the symbol \"%s\" while trying to load \"%s\""
msgstr ""
#: src/glade-signal-editor.c:106
msgid "Select signal"
msgstr ""
#: src/glade-signal-editor.c:232 src/glade-signal-editor.c:257
#: src/glade-signal-editor.c:271 src/glade-signal-editor.c:369
msgid "Yes"
msgstr ""
#: src/glade-signal-editor.c:294 src/glade-signal-editor.c:315
msgid "Please enter a valid signal name"
msgstr ""
#: src/glade-signal-editor.c:328
msgid "Please enter a signal handler"
msgstr ""
#: src/glade-signal-editor.c:520
msgid "Signal"
msgstr ""
#: src/glade-signal-editor.c:521
msgid "Handler"
msgstr ""
#: src/glade-signal-editor.c:522
msgid "After"
msgstr ""
#: src/glade-signal-editor.c:565
msgid "Signal :"
msgstr ""
#: src/glade-signal-editor.c:566
msgid "Handler :"
msgstr ""
#: src/glade-signal-editor.c:567
msgid "After :"
msgstr ""
#: src/glade-signal-editor.c:635
msgid "Add"
msgstr ""
#: src/glade-signal-editor.c:636
msgid "Update"
msgstr ""
#: src/glade-signal-editor.c:638
msgid "Clear"
msgstr ""
#: src/glade-widget-class.c:182
#, c-format
msgid "Could not get the type from \"%s\" while trying to load \"%s\""
msgstr ""
#: src/glade-widget-class.c:190
#, c-format
msgid "The loaded type is not a GtkWidget, while trying to load \"%s\""
msgstr ""
## Process this file with automake to produce Makefile.in
SUBDIRS=tests
SUBDIRS=
bin_PROGRAMS = glade2
......
......@@ -21,7 +21,6 @@
*/
#include <config.h>
#include <string.h>
#include "glade.h"
......
......@@ -12,12 +12,12 @@ G_BEGIN_DECLS
struct _GladeCatalog
{
GList *names; /* Contains the list of names that we are going
* to try to load. This is basically a memory
* representation of catalog.xml
*/
* to try to load. This is basically a memory
* representation of catalog.xml
*/
GList *widgets; /* Contains the list of GladeWidgetClass objects
* that where successfully loaded from disk
*/
* that where successfully loaded from disk
*/
};
GladeCatalog * glade_catalog_load (void);
......
......@@ -148,7 +148,7 @@ glade_choice_list_new_from_node (GladeXmlNode *node)
GladeChoice *choice;
GList *list;
if (!glade_xml_node_verify (node, GLADE_TAG_CHOICES))
if (!glade_xml_node_verify (node, GLADE_TAG_ENUM))
return NULL;
list = NULL;
......
......@@ -28,24 +28,24 @@ G_BEGIN_DECLS
struct _GladeChoice {
gchar *name; /* Name of the choice to be used in the gui. This
* field is translated. Like "Top Level" or "Ok"
* (for GTK_WINDOW_TOPLEVEL & GNOME_STOCK_BUTTON_OK
*/
* field is translated. Like "Top Level" or "Ok"
* (for GTK_WINDOW_TOPLEVEL & GNOME_STOCK_BUTTON_OK
*/
gchar *symbol; /* Symbol for the choice. Like GTK_WINDOW_TOPLEVEL (which
* is an integer) or GNOME_STOCK_BUTTON_FOO (which is
* not an integer). For integers which are enum'ed values
* this symbol is converted to its value
*/
* is an integer) or GNOME_STOCK_BUTTON_FOO (which is
* not an integer). For integers which are enum'ed values
* this symbol is converted to its value
*/
gint value; /* The enum value of the symbol. The symbol GTK_WINDOW_
* TOPLEVEL will be 0 and GTK_WINDOW_POPUP will be 1
*/
* TOPLEVEL will be 0 and GTK_WINDOW_POPUP will be 1
*/
const gchar *string; /* For non-integer values like GNOME_STOCK_BUTTON_OK
* it points to a string inside the librarry that
* contains it.
* See glade-choice.c#glade_string_from_sring
*/
* it points to a string inside the librarry that
* contains it.
* See glade-choice.c#glade_string_from_sring
*/
};
......
......@@ -228,7 +228,7 @@ glade_editor_table_new (GladeWidgetClass *class)
static void
glade_editor_property_changed_text_common (GladeProperty *property, const gchar *text)
{
glade_property_changed_text (property, text);
glade_property_set_string (property, text);
}
static void
......@@ -245,7 +245,7 @@ glade_editor_property_changed_text (GtkWidget *entry,
text = gtk_editable_get_chars (GTK_EDITABLE (entry), 0, -1);
glade_editor_property_changed_text_common (property->property, text);
g_free (text);
}
......@@ -288,7 +288,7 @@ glade_editor_property_changed_choice (GtkWidget *menu_item,
GLADE_CHOICE_DATA_TAG);
g_return_if_fail (choice != NULL);
glade_property_changed_choice (property->property, choice);
glade_property_set_choice (property->property, choice);
}
static void
......@@ -348,15 +348,15 @@ glade_editor_property_changed_numeric (GtkWidget *spin,
switch (numeric_type) {
case GLADE_EDITOR_INTEGER:
integer_val = gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (spin));
glade_property_changed_integer (property->property, integer_val);
glade_property_set_integer (property->property, integer_val);
break;
case GLADE_EDITOR_FLOAT:
float_val = gtk_spin_button_get_value_as_float (GTK_SPIN_BUTTON (spin));
glade_property_changed_float (property->property, float_val);
glade_property_set_float (property->property, float_val);
break;
case GLADE_EDITOR_DOUBLE:
double_val = (gdouble) gtk_spin_button_get_value_as_float (GTK_SPIN_BUTTON (spin));
glade_property_changed_double (property->property, double_val);
glade_property_set_double (property->property, double_val);
break;
default:
g_warning ("Invalid numeric_type %i\n", numeric_type);
......@@ -380,7 +380,7 @@ glade_editor_property_changed_boolean (GtkWidget *button,
label = GTK_BIN (button)->child;
gtk_label_set_text (GTK_LABEL (label), text [state]);
glade_property_changed_boolean (property->property, state);
glade_property_set_boolean (property->property, state);
}
......@@ -481,7 +481,7 @@ glade_editor_create_input_text (GladeEditorProperty *property)
static GtkWidget *
glade_editor_create_input_numeric (GladeEditorProperty *property,
GladeEditorNumericType numeric_type)
GladeEditorNumericType numeric_type)
{
GladePropertyClass *class;
GtkAdjustment *adjustment;
......@@ -494,7 +494,7 @@ glade_editor_create_input_numeric (GladeEditorProperty *property,
adjustment = glade_parameter_adjustment_new (class->parameters, class->def);
spin = gtk_spin_button_new (adjustment, 10,
numeric_type == GLADE_EDITOR_INTEGER ? 0 : 2);
numeric_type == GLADE_EDITOR_INTEGER ? 0 : 2);
gtk_object_set_data (GTK_OBJECT (spin), "NumericType", GINT_TO_POINTER (numeric_type));
gtk_signal_connect (GTK_OBJECT (spin), "changed",
......@@ -590,10 +590,10 @@ glade_editor_append_item_real (GladeEditorTable *table, GladeEditorProperty *pro
case GLADE_PROPERTY_TYPE_DOUBLE:
input = glade_editor_create_input_double (property);
break;
case GLADE_PROPERTY_TYPE_TEXT:
case GLADE_PROPERTY_TYPE_STRING:
input = glade_editor_create_input_text (property);
break;
case GLADE_PROPERTY_TYPE_CHOICE:
case GLADE_PROPERTY_TYPE_ENUM:
input = glade_editor_create_input_choice (property);
break;
case GLADE_PROPERTY_TYPE_OTHER_WIDGETS:
......@@ -909,7 +909,12 @@ glade_editor_property_load_integer (GladeEditorProperty *property)
spin = property->input;
}
val = atof (property->property->value);
if (property->property->value->g_type == G_TYPE_INT)
val = (gfloat) g_value_get_int (property->property->value);
else
val = g_value_get_float (property->property->value);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), val);
gtk_object_set_user_data (GTK_OBJECT (spin), property);
}
......@@ -940,6 +945,7 @@ glade_editor_property_load_double (GladeEditorProperty *property)
static void
glade_editor_property_load_choice (GladeEditorProperty *property)
{
#if 0
GladePropertyClass *pclass;
GladeChoice *choice;
GList *list;
......@@ -951,7 +957,7 @@ glade_editor_property_load_choice (GladeEditorProperty *property)
g_return_if_fail (property->input != NULL);
pclass = property->property->class;
list = pclass->choices;
for (; list != NULL; list = list->next) {
choice = (GladeChoice *)list->data;
......@@ -970,7 +976,7 @@ glade_editor_property_load_choice (GladeEditorProperty *property)
GtkMenuItem *menu_item = list->data;
gtk_object_set_user_data (GTK_OBJECT (menu_item), property);
}
#endif
}
static void
......@@ -997,16 +1003,7 @@ glade_editor_property_load_boolean (GladeEditorProperty *property)
g_return_if_fail (property->input != NULL);
g_return_if_fail (GTK_IS_TOGGLE_BUTTON (property->input));
if (strcmp (property->property->value, GLADE_TAG_TRUE) == 0)
state = TRUE;
else if (strcmp (property->property->value, GLADE_TAG_FALSE) == 0)
state = FALSE;
else {
g_warning ("Invalid boolean settings %s [%s],%s,%s)\n",
property->property->value, property->property->class->name,
GLADE_TAG_TRUE, GLADE_TAG_FALSE);
state = FALSE;
}
state = g_value_get_boolean (property->property->value);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (property->input), state);
label = GTK_BIN (property->input)->child;
......@@ -1027,22 +1024,27 @@ glade_editor_property_load_text (GladeEditorProperty *property)
if (GTK_IS_EDITABLE (property->input)) {
GtkEditable *editable = GTK_EDITABLE (property->input);
gint pos, insert_pos = 0;
const gchar *text;
text = g_value_get_string (property->property->value);
pos = gtk_editable_get_position (editable);
gtk_editable_delete_text (editable, 0, -1);
gtk_editable_insert_text (editable,
property->property->value,
strlen (property->property->value),
&insert_pos);
if (text)
gtk_editable_insert_text (editable,
text,
strlen (text),
&insert_pos);
gtk_editable_set_position (editable, pos);
} else if (GTK_IS_TEXT_VIEW (property->input)) {
GtkTextBuffer *buffer;
const gchar *text;
text = g_value_get_string (property->property->value);
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (property->input));
/* FIXME !!! Will not work with mulitybyte languajes !!. Chema */
gtk_text_buffer_set_text (buffer,
property->property->value,
strlen (property->property->value));
text,
strlen (text));
} else {
g_warning ("Invalid Text Widget type.");
}
......@@ -1083,7 +1085,7 @@ glade_editor_property_load (GladeEditorProperty *property, GladeWidget *widget)
property->property->loading = TRUE;
switch (class->type) {
case GLADE_PROPERTY_TYPE_TEXT:
case GLADE_PROPERTY_TYPE_STRING:
glade_editor_property_load_text (property);
break;
case GLADE_PROPERTY_TYPE_BOOLEAN:
......@@ -1098,7 +1100,7 @@ glade_editor_property_load (GladeEditorProperty *property, GladeWidget *widget)
case GLADE_PROPERTY_TYPE_INTEGER:
glade_editor_property_load_integer (property);
break;
case GLADE_PROPERTY_TYPE_CHOICE:
case GLADE_PROPERTY_TYPE_ENUM:
glade_editor_property_load_choice (property);
break;
case GLADE_PROPERTY_TYPE_OTHER_WIDGETS:
......@@ -1181,7 +1183,7 @@ glade_editor_property_changed_cb (GladeProperty *property,
GladeEditorProperty *editor_property)
{
g_return_if_fail (property == editor_property->property);
glade_editor_property_load (editor_property, property->widget);
}
......@@ -1204,13 +1206,13 @@ glade_editor_load_item (GladeEditor *editor, GladeWidget *item)
GladeEditorTable *table;
GList *list;
editor->loaded_widget = item;
/* Load the GladeWidgetClass */
class = item ? item->class : NULL;
if (editor->loaded_class != class)
glade_editor_load_class (editor, class);
editor->loaded_widget = item;
glade_editor_load_packing_page (editor, item);
glade_signal_editor_load_widget (editor->signal_editor, item);
......@@ -1261,8 +1263,8 @@ glade_editor_load_item (GladeEditor *editor, GladeWidget *item)
static void
glade_editor_select_item_real (GladeEditor *editor, GladeWidget *widget)
{
GladeEditorTable *table;
GladeEditorTable *table;
if (editor->loaded_widget == widget)
return;
......
......@@ -24,15 +24,17 @@
#include <stdlib.h>
#include "glade.h"
#include "glade-widget.h"
#include "glade-placeholder.h"
#include "glade-property-class.h"
static void
glade_gtk_entry_set_text (GObject *object, const gchar *string)
glade_gtk_entry_set_text (GObject *object, GValue *value)
{
GtkEditable *editable = GTK_EDITABLE (object);
gint pos;
gint insert_pos = 0;
const gchar *text = g_value_get_string (value);
g_return_if_fail (GTK_IS_EDITABLE (object));
......@@ -40,33 +42,40 @@ glade_gtk_entry_set_text (GObject *object, const gchar *string)
gtk_editable_delete_text (editable, 0, -1);
/* FIXME: will not work with multibyte languages (strlen) */
gtk_editable_insert_text (editable,
string,
strlen (string),
text,
strlen (text),
&insert_pos);
gtk_editable_set_position (editable, pos);
}
static gchar *
glade_gtk_entry_get_text (GObject *object)
static void
glade_gtk_entry_get_text (GObject *object, GValue *value)
{
GtkEntry *entry = GTK_ENTRY (object);
const gchar *text;
g_return_val_if_fail (GTK_IS_ENTRY (entry), NULL);
g_return_if_fail (GTK_IS_ENTRY (entry));
text = gtk_entry_get_text (entry);
return g_strdup (text);
g_value_set_string (value, text);
}
static void
glade_gtk_option_menu_set_items (GObject *object, const gchar *items)
glade_gtk_option_menu_set_items (GObject *object, GValue *value)
/*const gchar *items)*/
{
GtkOptionMenu *option_menu;
GtkWidget *menu;
const gchar *pos = items;
const gchar *items_end = &items[strlen (items)];
const gchar *items;
const gchar *pos;
const gchar *items_end;
items = g_value_get_string (value);
pos = items;
items_end = &items[strlen (items)];
option_menu = GTK_OPTION_MENU (object);
g_return_if_fail (GTK_IS_OPTION_MENU (option_menu));
menu = gtk_option_menu_get_menu (option_menu);
......@@ -94,9 +103,10 @@ glade_gtk_option_menu_set_items (GObject *object, const gchar *items)
static void
glade_gtk_progress_bar_set_format (GObject *object, const gchar *format)
glade_gtk_progress_bar_set_format (GObject *object, GValue *value)
{
GtkProgressBar *bar;
const gchar *format = g_value_get_string (value);
bar = GTK_PROGRESS_BAR (object);
g_return_if_fail (GTK_IS_PROGRESS_BAR (bar));
......@@ -105,86 +115,111 @@ glade_gtk_progress_bar_set_format (GObject *object, const gchar *format)
}
static void
glade_gtk_adjustment_set_max (GObject *object, const gchar *string)
glade_gtk_adjustment_set_max (GObject *object, GValue *value)
{
GtkAdjustment *adjustment;
gfloat val;
val = atof (string);
adjustment = GTK_ADJUSTMENT (object);
adjustment->upper = val;
adjustment->upper = g_value_get_float (value);
gtk_adjustment_changed (adjustment);
}
static void
glade_gtk_adjustment_set_min (GObject *object, const gchar *string)
glade_gtk_adjustment_set_min (GObject *object, GValue *value)
{
GtkAdjustment *adjustment;
gfloat val;
val = atof (string);
adjustment = GTK_ADJUSTMENT (object);
adjustment->lower = val;
adjustment->lower = g_value_get_float (value);
gtk_adjustment_changed (adjustment);
}
static void
glade_gtk_adjustment_set_step_increment (GObject *object, const gchar *string)
glade_gtk_adjustment_set_step_increment (GObject *object, GValue *value)
{
GtkAdjustment *adjustment;
gfloat val;
val = atof (string);
adjustment = GTK_ADJUSTMENT (object);
adjustment->step_increment = val;
adjustment->step_increment = g_value_get_float (value);
gtk_adjustment_changed (adjustment);
}
static void
glade_gtk_adjustment_set_page_increment (GObject *object, const gchar *string)
glade_gtk_adjustment_set_page_increment (GObject *object, GValue *value)
{
GtkAdjustment *adjustment;
gfloat val;
val = atof (string);
adjustment = GTK_ADJUSTMENT (object);
adjustment->page_increment = val;
adjustment->page_increment = g_value_get_float (value);
gtk_adjustment_changed (adjustment);
}
static void
glade_gtk_adjustment_set_page_size (GObject *object, const gchar *string)
glade_gtk_adjustment_set_page_size (GObject *object, GValue *value)
{
GtkAdjustment *adjustment;
gfloat val;
val = atof (string);
adjustment = GTK_ADJUSTMENT (object);
adjustment->page_size = val;
adjustment->page_size = g_value_get_float (value);
gtk_adjustment_changed (adjustment);
}
static void
glade_gtk_vbox_get_size (GObject *object, const gchar *string)
glade_gtk_box_get_size (GObject *object, GValue *value)
{
GtkBox *box;
g_value_reset (value);
box = GTK_BOX (object);
g_return_if_fail (GTK_IS_BOX (box));
g_value_set_int (value, g_list_length (box->children));
}
static void
glade_gtk_box_set_size (GObject *object, GValue *value)
{
glade_implement_me ();
GladeWidget *widget;
GtkBox *box;
gint new_size;
gint old_size;