* src/glade-editor.c, src/glade-project-window.c: Aligned editor
labels. Removed size request on editor widget and set default
window size for editor window.
* src/Makefile.am: Added glade-plugin.h & fixed_bg.xpm to
header list (for `make dist' purposes)
* src/glade-gtk.c: includes fixed_bg.xpm from new location
(moved fixed_bg.xpm from pixmaps --> src)
* src/glade-plugin.h: include glade-palette.h for compiler
warnings.
2004-12-22 Gustavo Noronha Silva <kov@debian.org>
* src/glade-palette.c, src/glade-project-window.c
Allow palette to get smaller.
2004-12-22 Archit Baweja <bighead@users.sourceforge.net>
* src/glade-palette.c (glade_palette_widget_table_create): cleanup
and use glade_palette_create_widget_class_button.
(glade_palette_create_widget_class_button): new function
(glade_palette_init): use a GtkComboBox for catalog names instead of
individual radio buttons. All callbacks and callers changed.
2004-11-17 Ivan Wong <email@ivanwong.info>
* configure.in:
- clean up a little bit.
- drop acconfig.h, use the third arg of AC_DEFINE instead.
- allow user to specify what version (dynamic/static) of
libpopt is to be used (win32 only).
* acconfig.h, config.h.win: removed
* src/Makefile.am: drop flags that are never used, and probably
won't be used.
* src/glade-catalog.c, src/glade-palette.c,
src/glade-project-window.c, src/glade-widget-class.c,
src/glade.h, src/main.c:
use global variables instead of preprocessor definitions for
data/locale/pixmaps/widgets/catalogs directory names.
2004-11-13 Ivan Wong <email@ivanwong.info>
* main.c, src/glade.h:
- add option "--verbose".
- add POPT_AUTOHELP.
- use dynamic version of popt on win32.
* src/glade-editor.c: Some compilers don't know __FUNCTION__,
G_GNUC_FUNCTION is better.
* src/glade-gtk.c:
- GLADEGTK_API should precede return type.
- glade_gtk_button_set_stock() now checks "use-underline" when "stock"
is restored to glade-none.
* src/glade-menu-editor.c: MSVC doesn't know #warning,
use #pragma message for that.
* src/glade-property-class.[ch]:
- MSVCRT.dll hasn't got strtoll(), use _atoi64() for that.
- add orig_def for storing the orginal default value that
is overridden by a custom default.
* src/glade_plugin.def: added glade_editor_load_widget.
* src/glade-editor.c, src/glade-gtk.c, src/glade-parameter.c,
src/glade-property-class.c, src/glade-transform.c, src/glade-widget.c:
fixed some signed/unsigned mismatch and truncation warnings that only
appears in MSVC.
2004-11-08 Tristan Van Berkom <tristan.van.berkom@gmail.com>
* src/glade-gtk.c: bug 157289 fixed in regard with boxes and notebooks.
2004-11-08 Shane Butler <shane_b@users.sourceforge.net>
* src/glade-gtk.c (glade_gtk_notebook_get_tab_label_text,
glade_gtk_notebook_set_tab_label_text): New functions to handle setting the tab
label text on the GtkNotebook child widget. (glade_gtk_notebook_replace_child):
Make it so the label is handled correctly and the correct notebook page is
still selected.
* widgets/gtknotebook.xml: Updated with tab label hook functions.
* src/glade-widget.c: Choose the mapped widget rather than just the last child
widget in the list.
* src/main.c (glade_init): Spelling mistake reported by Andrew Burton <adb@iinet.net.au>.
2004-11-05 David Hoover <karma@deadmoose.com>
* src/glade-project-view.c: when double-clicking on a window in the
project view, hide if if it's show, show it if it's hidden.
Fixes 156736
2004-11-02 Shane Butler <shane_b@users.sourceforge.net>
* src/glade-utils.[ch] (glade_util_file_dialog_new): rewrote function to create a GtkFileSelector or GtkFileChooser depending on the GTK+ version.
(glade_util_file_dialog_get_filename, glade_util_file_dialog_set_filename): Metods to retrieve and set the filename of whichever file selector type is supported.
* src/glade-project-window.c (gpw_open_cb, gpw_save_cb, gpw_save_as_cb, gpw_confirm_close_project): Update to use new functions (above).
* src/glade-menu-editor.c (on_icon_button_clicked): Update to new functions.
* configure.in: Revert back to requiring GTK+ 2.2 or above.
2004-11-02 Tristan Van Berkom <tristan.van.berkom@gmail.com>
* Removed GladePropertyType completely from the source in favor of
GParamSpec.
* Removed GladeChoice code, and replaced all references thereof
* Custom types must now provide a function to retrieve a GParamSpec for
that type (xml files and glade-gtk backend updated accordingly).
* Removed "child" member from GladePropertyType in order to avoid
confusion (Note, I will add support for non-widget types + all types
allowed to have children, in a more flexable way, for now I got rid
of all mention of "child" since it wasn't implemented and mostly
`#if 0'd out anyway)
* Implemented <VerifyFunction> in xml files and in the glade-gtk
backend.
* Added support for numerical types long/ulong/int64/uint64 to the
editor.
* src/glade-project.c: glade_project_remove_widget() Now removes nodes
on widget to remove, this fixes bug 156515.
* src/glade-editor.c: Fixed popup name to
g_strdup_printf(_("Create a %s"), type);
2004-10-28 Tristan Van Berkom <tristan.van.berkom@gmail.com>
* widgets/gtkbox.xml:
- Removed reference to obsoleted post_create function.
- Changed `ignore' to `empty' for the fill_empty funciton.
- Tagged "Size" property as type "Query".
- Added Default size 3
- Changed Minimum size to 2
* widgets/gtknotebook.xml:
- Tagged "pages" property as type "Query".
- Removed obsolete (or never implemented) Query section.
* widgets/gtktable.xml:
- Tagged "n-rows" and "n-columns" properties as type "Query".
- Removed obsolete (or never implemented) Query section.
* widgets/gtklabel.xml: Added default "" value for pattern property, this
works around gtk+ bug 156720 which was causing us segfaults.
2004-10-28 Tristan Van Berkom <tristan.van.berkom@gmail.com>
* src/glade-editor.[ch]: Implemented glade_editor_query_popup(), also obsoleted
common & packing booleans for a more convenient GladeEditorTableType field.
* src/glade-gtk.c:
- Refitted and integrated Mickael Cornet's patch to bug 153823
- glade_gtk_table_set_n_common() now refuses to shrink when it involves
orhpaning widgets, Its also been improved to fill in all the blanks.
- Removed all dialogs.
- Fixed children are now born with size-request properties enabled.
- Removed some `#if 0' code that I trust we dont need.
- glade_gtk_box_set_size() Adjusted to match gtk_table behaviour
* src/glade-plugin.h:
- Added a header to the batch.
* src/glade-popup.c: glade_popup_copy_cb() now duplicates the
widget in question with glade_widget_dup().
* src/glade-property-class.[ch]: glade_property_class_update_from_node() now
flags properties that need a pupop dialog at creation time.
* src/glade-property.[ch]: Implemented glade_property_sync() (Sychronizes
the object with its glade_property), glade_property_set() now calls
glade_property_sync().
* src/glade-widget.[ch]:
- Implemented glade_widget_dup().
- Added call to glade_property_sync on appropriate properties that
need to be synchronized after a glade_widget_rebuild().
- Added a call to glade_editor_query_popup() in the appropriate situation.
- glade_widget_build_object() now takes into account property_class default values
- glade_widget_new() now calls new function glade_widget_sync_query_props() in
popup cases (If properties dont change from there default, a synchronization is
needed at this point).
* widgets/gtkbox.xml:
- Removed reference to obsoleted post_create function.
- Changed `ignore' to `empty' for the fill_empty funciton.
- Tagged "Size" property as type "Query".
- Added Default size 3
- Changed Minimum size to 2
* widgets/gtknotebook.xml:
- Tagged "pages" property as type "Query".
- Removed obsolete (or never implemented) Query section.
* widgets/gtktable.xml:
- Tagged "n-rows" and "n-columns" properties as type "Query".
- Removed obsolete (or never implemented) Query section.
* widgets/gtklabel.xml: Added default "" value for pattern property, this
works around gtk+ bug 156720 which was causing us segfaults.
2004-10-26 Tristan Van Berkom <tristan.van.berkom@gmail.com>
* src/Makefile.am: CFLAGS was `-O2 -g', for now just `-g'. (Mixing
these two compiler options can cause really bad indigestion, i.e.
untracable bugs).
* src/glade-gtk.c:
- empty(): now serves as a standard noop for fill-empty functions
(as ignore() noop serves for get/set property).
- glade_gtk_fixed_post_create(): Removed useless
gtk_widget_add_events() line.
- glade_gtk_message_dialog_post_create: Fixed 155849, Message
dialog children
are now selectable usable through the UI.
- glade_gtk_fixed_fill_empty(): Obsoleted by `empty()'
* src/glade-project.c: glade_project_selection_add()/
glade_project_selection_set():
Functions no longer prematurly returns if the editor has no widget
loaded. (This is bug 155892)
* src/glade-property.c: glade_property_set() Function now takes care of
removing widgets from and adding widgets to the project if that
widget belongs to a project in the case of construct_only, also, if
that widget is in the selection list, the selection list is handled
here too.
* src/glade-widget.c:
- glade_widget_rebuild() Removed logic that handles
project/selection lists in favor of code in glade-property.c
- Added roboustness around glade_widget_set_widget() and
glade_widget_transport_children().
* widgets/gtkfixed.xml: Replaced fill-empty reference in favor of
`empty()'.
2004-10-26 David Hoover <karma@deadmoose.com>
* src/Makefile.am,src/glade-editor.c,src/glade-marshallers.list,
src/glade-widget.c: Dynamically generate a marshaller that was in
glade-editor.c, shorten the marshallers' prefix.
2004-10-25 David Hoover <karma@deadmoose.com>
* configure.in, src/.cvsignore, src/Makefile.am,
src/glade-marshallers.list: Add support to automatically generate
the marshallers files rather than checking in generated versions.
* src/glade-marshallers.c, src/glade-marshallers.h: Removed, since they
are now automatically generated.
2004-10-22 Tristan Van Berkom <tristan.van.berkom@gmail.com>
* src/glade-gtk.c: Added functionality for GtkFixed (also replaced some
ints with gints and chopped down some lines).
* src/glade-plugin.h: Added some headers for the plugin (needed for
GtkFixed)
* src/glade-popup.c,src/glade-project.c: Replaced reference to
GLADE_WIDGET_IS_TOPLEVEL (support for deprication of flags on
GladeWidgetClass).
* src/glade-project-view.c: Replaced reference to
GLADE_WIDGET_IS_TOPLEVEL (support for deprication of flags on
GladeWidgetClass).
* src/glade-project-window.[ch]: Replace gpw->project with
gpw->active_project and added
glade_project_window_get_active_project() for clarity's sake.
* src/glade-property-class.h: Added construct_only as a quick reference
(to G_PARAM_CONSTRUCT_ONLY).
* src/glade-property.c: glade_property_set() will now check for
construct_only and call glade_widget_rebuild_instance() if needed.
* src/glade-utils.c: fixed the queue_nodes code to add a reference on
the GladeWidget pertaining to the expose event, since the code
depends on the existance of the GladeWidget, the GtkWidget and the
GdkWindow as opposed to only the GdkWindow
* src/glade-widget-class.c: Update construct_only tab upon construction
of GladePropertyClass structs. Removed set of depricated flags on
GladeWidgetClass.
* src/glade-widget-class.h: Removed depricated flag macro definitions
(and removed the flags)
* src/glade-widget.c:
- Fixed Segfaults (Removed glade_widget_class_free() in finalize)
- Objects are now built with thier properties as paramaters of
g_object_newv
- Added glade_widget_rebuild_instance for the purpose of changing
properties that are flagged as G_PARAM_CONSTRUCT_ONLY.
* pixmaps/fixed_bg.xpm: New picture for background of GtkFixed.
* widgets/gtkfixed.xml,widgets/Makefile.am: Add definition of GtkFixed.
2004-10-06 Morten Welinder <terra@gnome.org>
* src/glade-gtk.c (glade_gtk_widget_condition): Fix life cycle of
GtkObjects.
* src/glade-xml-utils.c (glade_xml_context_destroy): Only
conditionally free xml document.
(glade_xml_context_new_real): New arg "freedoc".
2004-10-06 Morten Welinder <terra@gnome.org>
* src/glade-gtk.c (glade_gtk_widget_get_tooltip): Bullet proof.
(glade_gtk_notebook_post_create): Actually set the property.
* src/glade-widget.c (glade_widget_debug_real,
glade_widget_debug): New functions.
(glade_widget_set_name): Bullet proof.
(glade_widget_set_internal): Ditto.
(glade_widget_set_project): Ditto.
(glade_widget_fill_from_node): Plug leaks.
(glade_widget_new_from_node_real): Plug leak.
(glade_widget_new_child_from_node): Fix loading of internal
children and plug leak.
(glade_widget_get_internal_child): Change to return GtkWidget
because the GladeWidget may not be connected yet.
2004-10-04 Morten Welinder <terra@gnome.org>
* src/glade-widget.c (glade_widget_dispose): Glade properties are
not GObjects, so don't use g_object_unref on them.
2004-09-23 David Hoover <karma@deadmoose.com>
* src/*.c: mass addition of new gtk-doc-style comments for functions,
some cleanup of language & formatting in existing comments, minor
whitespace fixes, etc.
Slightly revised and committed by terra@gnome.org (Morten Welinder)
* widgets/gtkbox.xml: Fixed bug with loading GtkBoxes where too
many items were added (resize to see). Removed Default (this is
done in glade_gtk_box_post_create() anyway) and set the Min to 1.
2004-06-16 Paolo Borelli <pborelli@katamail.com>
* src/gedit-utils.c (glade_util_file_chooser_new): center the
dialog. Patch by Michał Byrecki <byrek@elektronika.org>.