]> Pileus Git - ~andy/gtk/log
~andy/gtk
20 years agoName the arrow "gtk-toolbar-arrow" so themes can special-case it.
Soeren Sandmann [Sun, 14 Sep 2003 15:03:07 +0000 (15:03 +0000)]
Name the arrow "gtk-toolbar-arrow" so themes can special-case it.

Sun Sep 14 16:59:52 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtktoolbar.c (gtk_toolbar_init): Name the arrow
"gtk-toolbar-arrow" so themes can special-case it.

20 years agosort the list of files.
Soeren Sandmann [Sun, 14 Sep 2003 14:09:37 +0000 (14:09 +0000)]
sort the list of files.

Sun Sep 14 16:07:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/Makefile.am (gtk_c_sources): sort the list of files.

20 years agoUnref the PangoFontMetrics. Patch from Steve Chaplin (#122257).
Soeren Sandmann [Sun, 14 Sep 2003 13:51:27 +0000 (13:51 +0000)]
Unref the PangoFontMetrics. Patch from Steve Chaplin (#122257).

Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
PangoFontMetrics. Patch from Steve Chaplin (#122257).

20 years agoRemove special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
Tor Lillqvist [Sun, 14 Sep 2003 13:43:45 +0000 (13:43 +0000)]
Remove special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,

2003-09-14  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
the usefulness of which was already in doubt. Removing it fixes
bugs #118575 and #121851.

20 years agosf bug 805259
Raymond Penners [Sun, 14 Sep 2003 09:47:25 +0000 (09:47 +0000)]
sf bug 805259

20 years agoMerge from stable.
Jonathan Blandford [Fri, 12 Sep 2003 14:46:50 +0000 (14:46 +0000)]
Merge from stable.

Fri Sep 12 16:32:53 2003  Jonathan Blandford  <jrb@redhat.com>

Merge from stable.

* gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
pressed button (used to determine if we want to initiate a drag later
on) if the current grab widget is either NULL or tree_view (Reported
by Jeroen Zwartepoorte).

20 years agoAdd deprecation notes. (#121955)
Matthias Clasen [Thu, 11 Sep 2003 22:09:38 +0000 (22:09 +0000)]
Add deprecation notes. (#121955)

2003-09-12  Matthias Clasen  <maclas@gmx.de>

* gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text)
(gdk_draw_text_wc): Add deprecation notes.  (#121955)

20 years agoAdd table menu tests.
Matthias Clasen [Thu, 11 Sep 2003 21:02:24 +0000 (21:02 +0000)]
Add table menu tests.

2003-09-11  Matthias Clasen  <maclas@gmx.de>

* tests/testgtk.c: Add table menu tests.

* gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the
GtkMenuPrivate struct itself. Pointed out by valgrind.

* gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up
properly.  (#121998)

20 years agofix gtkrc
cinamod [Thu, 11 Sep 2003 19:22:01 +0000 (19:22 +0000)]
fix gtkrc

20 years ago0.4.0
Raymond Penners [Thu, 11 Sep 2003 18:51:05 +0000 (18:51 +0000)]
0.4.0

20 years agoNotebook regression fixed
Raymond Penners [Thu, 11 Sep 2003 18:44:39 +0000 (18:44 +0000)]
Notebook regression fixed

20 years agoAdded an API point about needing a way to fetch the hpaned position so we
Federico Mena Quintero [Thu, 11 Sep 2003 00:56:46 +0000 (00:56 +0000)]
Added an API point about needing a way to fetch the hpaned position so we

2003-09-10  Federico Mena Quintero  <federico@ximian.com>

* TODO: Added an API point about needing a way to fetch the hpaned
position so we can save it.

* gtkfilechooser.c (_gtk_file_chooser_get_paths): Fixed API docs.
(gtk_file_chooser_get_uris): Likewise.
(gtk_file_chooser_get_filenames): Likewise.

* gtkfilechooserdialog.c (file_chooser_widget_file_activated): New
callback, calls gtk_window_activate_default().

* testfilechooser.c (response_cb): Print the selected files if the
user clicks OK.

20 years agoConnect to "row_activated" on the file list. (list_row_activated): New
Federico Mena Quintero [Thu, 11 Sep 2003 00:33:28 +0000 (00:33 +0000)]
Connect to "row_activated" on the file list. (list_row_activated): New

2003-09-10  Federico Mena Quintero  <federico@ximian.com>

* gtkfilechooserimpldefault.c (create_file_list): Connect to
"row_activated" on the file list.
(list_row_activated): New function.  Changes to folders or emits
the "file-activated" signal depending on what type of row was
activated.
(create_folder_tree): Renamed from create_directory_tree(), since
"folder" is the new politically-correct name.

* gtkfilechooserprivate.h (struct _GtkFileChooserIface): Added a
file-activated signal.

* gtkfilechooser.c (gtk_file_chooser_class_init): Register the
signal.

* gtkfilechooserutils.c (_gtk_file_chooser_set_delegate): Connect
to "file-activated" on the delegate.
(delegate_file_activated): New function.

* TODO: Added an API item about Clipart-like folders provided by
applications.

20 years agoThe table menu patch! Turns GtkMenu into a table, so you can attach menu
Kristian Rietveld [Wed, 10 Sep 2003 20:32:33 +0000 (20:32 +0000)]
The table menu patch! Turns GtkMenu into a table, so you can attach menu

Wed Sep 10 22:25:04 2003  Kristian Rietveld  <kris@gtk.org>

The table menu patch! Turns GtkMenu into a table, so you can attach
menu items in numerous new ways! Be creative!

Contains some bug fixes and RTL adaptions from Matthias Clasen.

* gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend
GtkMenuPrivate, introduce AttachInfo, add child properties enum,
(gtk_menu_free_private), (gtk_menu_get_private): we have to free
the heights array in the private struct,
(gtk_menu_class_init): reorder code a bit, install child properties,
(get_attach_info), (get_child_attach): new utility functions,
(gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce
child properties, for the attach info,
(gtk_menu_remove): remove AttachInfo from menu item,
(gtk_menu_real_insert): implemented algorithm to automagically place
inserted menu items at the correct place in the table,
(gtk_menu_size_request), (gtk_menu_size_allocate),
(compute_child_offset): reworked/rewritten to support table menus,
(gtk_menu_attach): new function,
(find_child_containing), (gtk_menu_move_current): new functions to
get table menu keynav right.

* gtk/gtkmenu.h: add gtk_menu_attach() prototype.

20 years agoOnly remove PropertyNotify events from the stream if they have been
Matthias Clasen [Wed, 10 Sep 2003 15:56:11 +0000 (15:56 +0000)]
Only remove PropertyNotify events from the stream if they have been

2003-09-10  Matthias Clasen  <maclas@gmx.de>

* gtk/gtksocket.c (gtk_socket_filter_func): Only remove
PropertyNotify events from the stream if they have been handled,
in order to enable extending the plug<->socket communication via
properties.

20 years agoUse the cell renderer's "text" and "weight" properties rather than
Federico Mena Quintero [Wed, 10 Sep 2003 01:26:13 +0000 (01:26 +0000)]
Use the cell renderer's "text" and "weight" properties rather than

2003-09-09  Federico Mena Quintero  <federico@ximian.com>

* gtkfilechooserimpldefault.c (set_cell_text_bold_if_folder): Use
the cell renderer's "text" and "weight" properties rather than
"markup".

20 years agoBig TreeView DnD fixage, makes drops on empty models work, makes TreeStore
Kristian Rietveld [Tue, 9 Sep 2003 23:13:39 +0000 (23:13 +0000)]
Big TreeView DnD fixage, makes drops on empty models work, makes TreeStore

Wed Sep 10 01:06:44 2003  Kristian Rietveld  <kris@gtk.org>

Big TreeView DnD fixage, makes drops on empty models work, makes
TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
Related bugs #95362 and #113314. I don't want to touch this code
ever again.

* gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.

* gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
for selection_data->length.

* gtk/gtktreeview.c (struct DestRow), (dest_row_free),
(set_dest_row), (get_dest_row): we don't store just the row ref
anymore, but a struct with the row ref and additional info,
(set_destination_row): handle drops on empty space and some
style fixes,
(get_logical_dest_row): also return path_down_mode/drop_append_mode
flags, handle dropping childs on their new parents, rewrite
drop append handling into something saner,
(gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
spaces,
(gtk_tree_view_drag_drop): updates for updated backend,
(gtk_tree_view_drag_data_received): updates for updated backend,
path down mode (treestore DnD) handling,
(gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
when we are trying to drop a row on an empty model,
(gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.

* gtk/gtkliststore.c (gtk_list_store_drag_data_received),
(gtk_list_store_row_drop_possible): style and drop-append fixes.

* gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.

20 years agoMake the list model read in directory information as well.
Federico Mena Quintero [Tue, 9 Sep 2003 17:50:23 +0000 (17:50 +0000)]
Make the list model read in directory information as well.

2003-09-09  Federico Mena Quintero  <federico@ximian.com>

* gtkfilechooserimpldefault.c (tree_selection_changed): Make the
list model read in directory information as well.
(set_cell_text_bold_if_folder): New utility function.  Sets a
cell's text, making it bold if the file info is a folder.
(list_name_data_func): Use set_cell_text_bold_if_folder().
(list_mtime_data_func): Use set_cell_text_bold_if_folder().
(list_size_data_func): Don't set anything if the file info is a
folder.

20 years agoSmall doc fix
Owen Taylor [Tue, 9 Sep 2003 15:37:54 +0000 (15:37 +0000)]
Small doc fix

20 years agoFree the display_key.
Federico Mena Quintero [Tue, 9 Sep 2003 15:18:29 +0000 (15:18 +0000)]
Free the display_key.

2003-09-08  Federico Mena Quintero  <federico@ximian.com>

* gtkfilesystem.c (gtk_file_info_free): Free the display_key.

* gtkfilechooserimpldefault.c (list_mtime_data_func): New
function.
(create_file_list): Add a modification time column; remove the
size column.
(mtime_sort_func): New callback.
(tree_selection_changed): Add a sorting function for the mtime
column.  Have the model fetch the modification time as well.
(tree_selection_changed): Do allow the file list model to show
directories.

* testfilechooser.c (my_new_from_file_at_size): Do not try to read
non-regular files.

20 years agofix font problem in workrave
cinamod [Tue, 9 Sep 2003 15:07:33 +0000 (15:07 +0000)]
fix font problem in workrave

20 years agomake a bunch of data const
cinamod [Tue, 9 Sep 2003 14:18:43 +0000 (14:18 +0000)]
make a bunch of data const

20 years agoImplement gtk_event_box_get/set_input_only()
Alexander Larsson [Mon, 8 Sep 2003 20:04:49 +0000 (20:04 +0000)]
Implement gtk_event_box_get/set_input_only()

2003-09-08  Alexander Larsson  <alexl@redhat.com>

* gtk/gtkeventbox.[hc]:
Implement gtk_event_box_get/set_input_only()

* tests/testgtk.c:
Tests for the new input only event boxes

20 years agoFixes from David Hampton <hampton@employees.org> via gtk-devel-list.
Kristian Rietveld [Mon, 8 Sep 2003 19:51:16 +0000 (19:51 +0000)]
Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.

Mon Sep  8 21:44:20 2003  Kristian Rietveld  <kris@gtk.org>

Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.

* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
the call to gtk_tree_model_filter_add_root,
(gtk_tree_model_filter_row_changed): bail out if c_path is not above
the virtual root, allow building levels on the second try to convert
the child path to a filter path,
(gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
root when calling gtk_tree_model_filter_elt_get_path.

20 years agoscrollbar sizes, button sizes, paned sizes
cinamod [Mon, 8 Sep 2003 13:53:25 +0000 (13:53 +0000)]
scrollbar sizes, button sizes, paned sizes

20 years agoUpdated Albanian translation
Laurent Dhima [Mon, 8 Sep 2003 09:59:58 +0000 (09:59 +0000)]
Updated Albanian translation

* sq.po: Updated Albanian translation

20 years agoUpdated
Laurent Dhima [Mon, 8 Sep 2003 09:57:44 +0000 (09:57 +0000)]
Updated

20 years agoFix a C99ism. (#121640, Josh Beam)
Matthias Clasen [Sat, 6 Sep 2003 23:52:00 +0000 (23:52 +0000)]
Fix a C99ism. (#121640, Josh Beam)

2003-09-07  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkuimanager.c (update_node): Fix a C99ism.  (#121640,
Josh Beam)

Fixes for accelerator handling during (un)merging:

* gtk/gtkuimanager.c (update_node): Move setting info-action
after the switch, since the old action is needed in some cases.
In cases of proxy type mismatch, disconnect the old proxy from
the old action.

* gtk/gtkaction.c (remove_proxy): Renamed from
gtk_action_remove_proxy(). Move unsetting of the accelerator
here from disconnect_proxy() in order to catch all cases of
removing a proxy.
(gtk_action_disconnect_proxy): Fix logic in g_return_if_fail()
to fail if proxy isn't a proxy of action.

20 years agoAdded Uzbek files
Pablo Saratxaga [Sat, 6 Sep 2003 23:04:19 +0000 (23:04 +0000)]
Added Uzbek files

20 years agoMake disconnect work for toolitems.
Matthias Clasen [Sat, 6 Sep 2003 22:13:20 +0000 (22:13 +0000)]
Make disconnect work for toolitems.

2003-09-07  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkaction.c (disconnect_proxy): Make disconnect work
for toolitems.

20 years agoDisconnect from prev_action, not from action. (Fix by David Hampton)
Matthias Clasen [Sat, 6 Sep 2003 21:04:01 +0000 (21:04 +0000)]
Disconnect from prev_action, not from action. (Fix by David Hampton)

2003-09-06  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from
prev_action, not from action.  (Fix by David Hampton)

20 years ago*** empty log message ***
Mugurel Tudor [Sat, 6 Sep 2003 20:52:55 +0000 (20:52 +0000)]
*** empty log message ***

20 years agoNew function. (create_directory_tree): New function. (create_file_list):
Federico Mena Quintero [Sat, 6 Sep 2003 00:50:33 +0000 (00:50 +0000)]
New function. (create_directory_tree): New function. (create_file_list):

2003-09-05  Federico Mena Quintero  <federico@ximian.com>

* gtkfilechooserimpldefault.c (create_filter): New function.
(create_directory_tree): New function.
(create_file_list): New function.
(create_filename_entry): New function.
(gtk_file_chooser_impl_default_constructor): Use the functions
above rather than creating the whole file chooser megawidget here,
for readability.  This will also let us rearrange the user
interface more easily.

20 years ago//bugs.xfree86.org/show_bug.cgi?id=534)
Owen Taylor [Fri, 5 Sep 2003 18:23:21 +0000 (18:23 +0000)]
//bugs.xfree86.org/show_bug.cgi?id=534)

Fri Sep  5 14:15:10 2003  Owen Taylor  <otaylor@redhat.com>

        * Back out locale-dependent interpretation of
        KP_Decimal, the official XFree86 interpretation
        is that KP_Decimal => . KP_Separator => ,
        always, independent of locale.
        (#105161, Frederic Crozat,
        http://bugs.xfree86.org/show_bug.cgi?id=534)

20 years agoTest buttons and toggle buttons as proxies.
Matthias Clasen [Thu, 4 Sep 2003 21:34:15 +0000 (21:34 +0000)]
Test buttons and toggle buttons as proxies.

2003-09-04  Matthias Clasen  <maclas@gmx.de>

* tests/testmerge.c: Test buttons and toggle buttons as proxies.

* gtk/gtktoggleaction.c (connect_proxy):
(gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note
that a "draw_as_radio" property is needed for check buttons similar to
check menu items, in order to fully support button proxies for radio actions.

* gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.

20 years agoTest gtk_ui_manager_add_ui().
Matthias Clasen [Thu, 4 Sep 2003 20:39:15 +0000 (20:39 +0000)]
Test gtk_ui_manager_add_ui().

2003-09-04  Matthias Clasen  <maclas@gmx.de>

* tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui().

* gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
'type' argument of gtk_ui_manager_add_ui().

* gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
to make this function as powerful as the XML methods of adding UI.  (#120647)

* gtk/gtk-sections.txt: Add GtkUIManagerItemType.

20 years agoMerge from stable.
Kristian Rietveld [Thu, 4 Sep 2003 17:16:53 +0000 (17:16 +0000)]
Merge from stable.

Thu Sep  4 19:11:23 2003  Kristian Rietveld  <kris@gtk.org>

Merge from stable.

* docs/RELEASE-HOWTO: updates.

20 years agoUse "position" instead of "pos".
Matthias Clasen [Thu, 4 Sep 2003 09:07:23 +0000 (09:07 +0000)]
Use "position" instead of "pos".

* tests/merge-2.ui: Use "position" instead of "pos".

* gtk/gtkuimanager.c (start_element_handler): No need
to be terse: Change the name of the "pos" attribute
to "position".

* gtk/tmpl/gtkuimanager.sgml: Change the name of the "pos"
attribute to "position".

20 years agoDoc tweaks.
Matthias Clasen [Thu, 4 Sep 2003 00:49:37 +0000 (00:49 +0000)]
Doc tweaks.

20 years agoUn-prefix GtkUIManagerNodeType and GtkUIManagerNode to shorten the names
Matthias Clasen [Thu, 4 Sep 2003 00:15:59 +0000 (00:15 +0000)]
Un-prefix GtkUIManagerNodeType and GtkUIManagerNode to shorten the names

* gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and
GtkUIManagerNode to shorten the names and to make the
GTK_UI_MANAGER_<TYPE> names available for a public enum.

20 years agoVarious doc tweaks.
Matthias Clasen [Thu, 4 Sep 2003 00:00:14 +0000 (00:00 +0000)]
Various doc tweaks.

2003-09-04  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkuimanager.c: Various doc tweaks.

* gtk/gtkuimanager.c (start_element_handler):
(end_element_handler): Improve error reporting.

20 years agoMerge from stable.
Kristian Rietveld [Wed, 3 Sep 2003 21:26:13 +0000 (21:26 +0000)]
Merge from stable.

Wed Sep  3 23:18:17 2003  Kristian Rietveld  <kris@gtk.org>

Merge from stable.

* gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case,
use end_position - page_size instead of G_MAXINT, since
gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237,
reported by Havoc Pennington).

20 years agoRemove excess check that was breaking with current GObject.
Owen Taylor [Wed, 3 Sep 2003 20:42:44 +0000 (20:42 +0000)]
Remove excess check that was breaking with current GObject.

Wed Sep  3 16:38:59 2003  Owen Taylor  <otaylor@redhat.com>

        * glib-interface-propreties-0.5.patch: Remove excess
        check that was breaking with current GObject.

        * gtkfilechooser.c (gtk_file_chooser_class_init):
        use the new ability to have a class_init function for
        interfaces to avoid the ugly static gboolean initialized
        hack.

20 years agoMerge from stable.
Kristian Rietveld [Wed, 3 Sep 2003 20:05:04 +0000 (20:05 +0000)]
Merge from stable.

Wed Sep  3 21:58:03 2003  Kristian Rietveld  <kris@gtk.org>

Merge from stable.

* gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL,
unref it. (Fixes memleak, patch from Kjartan Maraas).

20 years agobrooooooooken pipe.
Kristian Rietveld [Wed, 3 Sep 2003 19:57:05 +0000 (19:57 +0000)]
brooooooooken pipe.

20 years agobig patch from Kjartan Maraas to fix numerous typos.
Kristian Rietveld [Wed, 3 Sep 2003 19:56:36 +0000 (19:56 +0000)]
big patch from Kjartan Maraas to fix numerous typos.

Wed Sep  3 21:38:26 2003  Kristian Rietveld  <kris@gtk.org>

* gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c,
gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c,
gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c,
gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c,
gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c,
gtk/gtktypeutils.h: big patch from Kjartan Maraas
to fix numerous typos.

20 years agoUpdate.
Owen Taylor [Wed, 3 Sep 2003 19:37:01 +0000 (19:37 +0000)]
Update.

Wed Sep  3 15:32:26 2003  Owen Taylor  <otaylor@redhat.com>

        * glib-interface-propreties-{0.4,0.5}.patch: Update.

        * gtkfilechooserutils.c prop-editor.c: Update for
        newer interface-properties API.

20 years agouse tooltip color, font
cinamod [Wed, 3 Sep 2003 17:40:23 +0000 (17:40 +0000)]
use tooltip color, font

20 years agoForgot to update the FAQ date from previous commit
BST 2003 Tony Gale [Wed, 3 Sep 2003 16:50:43 +0000 (16:50 +0000)]
Forgot to update the FAQ date from previous commit

Wed Sep  3 17:50:00 BST 2003 Tony Gale <gale@gtk.org>

 Forgot to update the FAQ date from previous commit

20 years agoCorrect compile line for threads example.
BST 2003 Tony Gale [Wed, 3 Sep 2003 16:39:28 +0000 (16:39 +0000)]
Correct compile line for threads example.

Wed Sep  3 17:38:01 BST 2003  Tony Gale <gale@gtk.org>

        * docs/faq/gtk-faq.sgml: Correct compile line for threads example.

20 years agoRemoved the "extra widget" bit, implemented with the following:
Federico Mena Quintero [Wed, 3 Sep 2003 05:52:35 +0000 (05:52 +0000)]
Removed the "extra widget" bit, implemented with the following:

2003-09-03  Federico Mena Quintero  <federico@ximian.com>

* TODO: Removed the "extra widget" bit, implemented with the
following:

* gtkfilechooser.h: Added gtk_file_chooser_{set,get}_extra_widget().

* gtkfilechooser.c (gtk_file_chooser_base_init): Install an
"extra-widget" interface property.
(gtk_file_chooser_set_extra_widget): Implemented.
(gtk_file_chooser_get_extra_widget): Implemented.

* gtkfilechooserutils.h (GtkFileChooserProp): Added
GTK_FILE_CHOOSER_PROP_EXTRA_WIDGET.

* gtkfilechooserutils.c (_gtk_file_chooser_install_properties):
Added the "extra-widget" property.

* gtkfilechooserimpldefault.c (struct _GtkFileChooserImplDefault):
Added an extra_widget field.
(gtk_file_chooser_impl_default_set_property): Handle the
"extra-widget" property.
(gtk_file_chooser_impl_default_get_property): Likewise.
(set_preview_widget): Fix the call gtk_container_remove().  Also,
we don't need to ref/sink/unref the preview widget, as that gets
already done by container_add/remove.
(set_extra_widget): New utility function.

* testfilechooser.c (main): Add an extra widget.

20 years agoDon't call CloseHandle() on the HMODULE returned from GetModuleHandle().
Tor Lillqvist [Tue, 2 Sep 2003 23:33:02 +0000 (23:33 +0000)]
Don't call CloseHandle() on the HMODULE returned from GetModuleHandle().

2003-09-02  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call
CloseHandle() on the HMODULE returned from GetModuleHandle().
Didn't cause any harm, but didn't do anything useful either. When
running a GTK+ program under MS's debugger, the CloseHandle() call
would cause a "first-chance exception" in ntdll.dll to show up.
(The exception is caught appropriately if you let it proceed, but
it confuses the person using the debugger). Thanks to Bruce
Hochstetler for noticing.

20 years agorespect boldness and italic
cinamod [Tue, 2 Sep 2003 22:09:49 +0000 (22:09 +0000)]
respect boldness and italic

20 years agos/nonexistant/nonexistent Likewise. Likewise. Likewise.
Federico Mena Quintero [Tue, 2 Sep 2003 20:20:46 +0000 (20:20 +0000)]
s/nonexistant/nonexistent Likewise. Likewise. Likewise.

2003-09-02  Federico Mena Quintero  <federico@ximian.com>

* gtkfilesystem.h: s/nonexistant/nonexistent
* gtkfilesystem.c: Likewise.
* gtkfilesystemgnomevfs.c: Likewise.
* gtkfilesystemunix.c: Likewise.

2003-08-27  Federico Mena Quintero  <federico@ximian.com>

* README: The required GtkTreeView patches are already on CVS.
Removed the part that mentions them.

20 years agofix build
cinamod [Tue, 2 Sep 2003 19:21:11 +0000 (19:21 +0000)]
fix build

20 years agoMerge from stable.
Kristian Rietveld [Tue, 2 Sep 2003 19:16:11 +0000 (19:16 +0000)]
Merge from stable.

Tue Sep  2 21:01:19 2003  Kristian Rietveld  <kris@gtk.org>

Merge from stable.

* gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change
to only select when button 1 is pressed introduced in the fix of
bug #120187.

20 years agoDoc addition.
Matthias Clasen [Mon, 1 Sep 2003 23:45:54 +0000 (23:45 +0000)]
Doc addition.

* gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.

20 years agoAdditions.
Matthias Clasen [Mon, 1 Sep 2003 23:20:33 +0000 (23:20 +0000)]
Additions.

20 years agoShorten the names of some static functions.
Matthias Clasen [Mon, 1 Sep 2003 22:15:16 +0000 (22:15 +0000)]
Shorten the names of some static functions.

2003-09-02  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkuimanager.c: Shorten the names of some static
functions.

Support adding and removing merge nodes dynamically (#120647,
Anders Carlsson):

* gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed
gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id
and made it public.
(gtk_ui_manager_add_ui): New function to add UI elements
without juggling XML fragments, currently restricted to menuitems,
toolitems and separators. Actions still come from registered
action groups.

20 years agoFix bug where the background pixmap was being offset twice, once by the
Soeren Sandmann [Mon, 1 Sep 2003 17:23:27 +0000 (17:23 +0000)]
Fix bug where the background pixmap was being offset twice, once by the

Mon Sep  1 19:39:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the
background pixmap was being offset twice, once by the ts_origin in
gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().

20 years agomerged Japanese translation by Takeshi AIHANA <aihana@gnome.gr.jp>.
KAMAGASAKO Masatoshi [Mon, 1 Sep 2003 17:16:10 +0000 (17:16 +0000)]
merged Japanese translation by Takeshi AIHANA <aihana@gnome.gr.jp>.

2003-09-02  KAMAGASAKO Masatoshi  <emerald@gnome.gr.jp>

* ja.po: merged Japanese translation by
Takeshi AIHANA <aihana@gnome.gr.jp>.

20 years agoAdd an example UI description.
Matthias Clasen [Mon, 1 Sep 2003 00:34:41 +0000 (00:34 +0000)]
Add an example UI description.

* gtk/tmpl/gtkuimanager.sgml: Add an example UI description.

20 years agoMake this public again, since it's occasionally useful. (#121128, Marco
Matthias Clasen [Sun, 31 Aug 2003 23:36:37 +0000 (23:36 +0000)]
Make this public again, since it's occasionally useful. (#121128, Marco

2003-09-01  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make
this public again, since it's occasionally useful.  (#121128,
Marco Pesenti Gritti)

* gtk/gtkaction.c: Add an "is_important" property and propagate
it to toolitem proxies.  (#121058, Marco Pesenti Gritti)

20 years agoconnect to "delete_event" so the application will actually quit when you
Soeren Sandmann [Sun, 31 Aug 2003 22:32:49 +0000 (22:32 +0000)]
connect to "delete_event" so the application will actually quit when you

Mon Sep  1 00:32:30 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* tests/testtoolbar.c (main): connect to "delete_event" so the
application will actually quit when you close the window

20 years agog_return_if_fail() if path is NULL. (gtk_ui_manager_get_node): Avoid a
Matthias Clasen [Sun, 31 Aug 2003 22:29:42 +0000 (22:29 +0000)]
g_return_if_fail() if path is NULL. (gtk_ui_manager_get_node): Avoid a

2003-09-01  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkuimanager.c (gtk_ui_manager_get_widget)
(gtk_ui_manager_get_action): g_return_if_fail() if
path is NULL.
(gtk_ui_manager_get_node): Avoid a segfault if path is empty.
(gtk_ui_manager_finalize): Remove the idle on finalize. (#121125,
Marco Pesenti Gritti)

20 years agoFix some typos in docs.
Matthias Clasen [Sun, 31 Aug 2003 14:01:07 +0000 (14:01 +0000)]
Fix some typos in docs.

* gtk/gtktoolitem.c: Fix some typos in docs.

20 years agoAdd gtktoggleactionprivate.h
Matthias Clasen [Sun, 31 Aug 2003 13:49:15 +0000 (13:49 +0000)]
Add gtktoggleactionprivate.h

2003-08-31  Matthias Clasen  <maclas@gmx.de>

* gtk/Makefile.am (IGNORE_HFILES): Add gtktoggleactionprivate.h

* gtk/tmpl/gtkuimanager.sgml:
* gtk/gtk-sections.txt: Replace gtk_ui_manager_activate by
gtk_ui_manager_get_action.

* gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
replaces gtk_ui_manager_activate().  (#120658)

* tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
gtk_ui_manager_activate().

20 years agoAdditions.
Matthias Clasen [Sun, 31 Aug 2003 00:27:15 +0000 (00:27 +0000)]
Additions.

2003-08-31  Matthias Clasen  <maclas@gmx.de>

* gtk/tmpl/gtkuimanager.sgml:
* gtk/tmpl/gtkactiongroup.sgml:
* gtk/tmpl/gtkaction.sgml:
* gtk/tmpl/gtktoggleaction.sgml:
* gtk/tmpl/gtkradioaction.sgml: Additions.

* gtk/gtk-sections.txt: Updates.

* gtk/gtk.types: Add GtkAction, GtkActionGroup, GtkToggleAction,
GtkRadioAction and GtkUIManager.

* gtk/gtkaction.c:
* gtk/gtkactiongroup.c: Some doc tweaks.

* gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
wasn't emitted anyway. Some doc tweaks.

20 years agoAdd some docs.
Matthias Clasen [Sat, 30 Aug 2003 22:26:32 +0000 (22:26 +0000)]
Add some docs.

2003-08-31  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkactiongroup.c: Add some docs.

* gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
wasn't emitted anyway.

20 years agoConnect to "destroy" on toolbar, rather than to "remove" on handlebox.
Matthias Clasen [Sat, 30 Aug 2003 21:18:43 +0000 (21:18 +0000)]
Connect to "destroy" on toolbar, rather than to "remove" on handlebox.

2003-08-30  Matthias Clasen  <maclas@gmx.de>

* tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
rather than to "remove" on handlebox.

* gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
activate an action found by following a path.  (#120658)

* tests/testmerge.c: Add a button to test gtk_ui_manager_activate().

20 years agoPut toolbars in handleboxes.
Matthias Clasen [Fri, 29 Aug 2003 23:33:54 +0000 (23:33 +0000)]
Put toolbars in handleboxes.

2003-08-30  Matthias Clasen  <maclas@gmx.de>

* tests/testmerge.c (add_widget): Put toolbars in handleboxes.

* gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with
setter and getter. If it is set, add tearoff menu items to regular
menus, but not to popups. Add a signal "changed", which gets emitted
when the merged ui has changed.

* tests/testmerge.c: Add button to test the generation of tearoff
menu items.

20 years agoPut toolbars in handleboxes.
Matthias Clasen [Fri, 29 Aug 2003 23:23:44 +0000 (23:23 +0000)]
Put toolbars in handleboxes.

* tests/testmerge.c (add_widget): Put toolbars in handleboxes.

20 years agosome tooltips work -waiting for gtk 2.4
cinamod [Fri, 29 Aug 2003 22:45:18 +0000 (22:45 +0000)]
some tooltips work -waiting for gtk 2.4

20 years agoAdd a boolean property, "add_tearoffs" with setter and getter. If it is
Matthias Clasen [Fri, 29 Aug 2003 22:42:37 +0000 (22:42 +0000)]
Add a boolean property, "add_tearoffs" with setter and getter. If it is

2003-08-30  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with
setter and getter. If it is set, add tearoff menu items to regular
menus, but not to popups.

* tests/testmerge.c: Add button to test the generation of tearoff
menu items.

20 years agobetter font handling
cinamod [Fri, 29 Aug 2003 22:10:07 +0000 (22:10 +0000)]
better font handling

20 years agotoolbar chevrons
cinamod [Fri, 29 Aug 2003 21:00:14 +0000 (21:00 +0000)]
toolbar chevrons

20 years agoActually group the actions together rather than putting each in its own
Matthias Clasen [Fri, 29 Aug 2003 20:21:01 +0000 (20:21 +0000)]
Actually group the actions together rather than putting each in its own

2003-08-29  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): Actually group the actions
together rather than putting each in its own group.

20 years agoSet "draw_as_radio" on proxy menu items for radio actions.
Matthias Clasen [Fri, 29 Aug 2003 19:50:55 +0000 (19:50 +0000)]
Set "draw_as_radio" on proxy menu items for radio actions.

2003-08-29  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on proxy menu items
for radio actions.

20 years agoUse g_strtod instead of strtod.
Matthias Clasen [Fri, 29 Aug 2003 19:38:07 +0000 (19:38 +0000)]
Use g_strtod instead of strtod.

* gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.

20 years agoForgot to actually commit this file
Søren Sandmann Pedersen [Fri, 29 Aug 2003 19:28:44 +0000 (19:28 +0000)]
Forgot to actually commit this file

20 years agoFix use of uninitialized variable.
Soeren Sandmann [Fri, 29 Aug 2003 19:26:58 +0000 (19:26 +0000)]
Fix use of uninitialized variable.

Fri Aug 29 21:40:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
Fix use of uninitialized variable.

* gtk/gtktextutil.c
(_gtk_text_util_append_special_char_menuitems): add const cast to
get rid of warning

20 years agoAlso support "draw_as_radio".
Matthias Clasen [Fri, 29 Aug 2003 19:19:44 +0000 (19:19 +0000)]
Also support "draw_as_radio".

2003-08-29  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkcheckmenuitem.c (gtk_check_menu_item_get_property):
(gtk_check_menu_item_set_property): Also support "draw_as_radio".

20 years agoInstall "draw_as_radio" as a separate property, not as an alias of
Matthias Clasen [Fri, 29 Aug 2003 19:15:26 +0000 (19:15 +0000)]
Install "draw_as_radio" as a separate property, not as an alias of

2003-08-29  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install "draw_as_radio"
as a separate property, not as an alias of "inconsistent".

20 years agoOnly treat buttons as homogeneous when they are narrower than 13 time the
Soeren Sandmann [Fri, 29 Aug 2003 18:28:23 +0000 (18:28 +0000)]
Only treat buttons as homogeneous when they are narrower than 13 time the

Fri Aug 29 20:32:07 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
are narrower than 13 time the estimated character width of the
font. (#107781, David Bordoley)

* gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
here if the GtkToggleButton is active. This may be the case if it
is a radio button.

* gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
Suarez-Alvarez).

* gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
property. (#111207, David Bordoley).

* gtk/gtktoggletoolbutton.c
(gtk_toggle_tool_button_create_menu_proxy): use new
"draw_as_radio" property on the menu item when the item is a radio
tool button

* gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
to only pay attention to the "use_underline" property when the
button label comes from the "label" property.

20 years agoAdded "sq" to ALL_LINGUAS
Laurent Dhima [Fri, 29 Aug 2003 12:27:48 +0000 (12:27 +0000)]
Added "sq" to ALL_LINGUAS

* configure.in: Added "sq" to ALL_LINGUAS

20 years agoAdded Albanian translation by Besnik Bleta <besnikbleta@hotmail.com>
Laurent Dhima [Fri, 29 Aug 2003 12:25:00 +0000 (12:25 +0000)]
Added Albanian translation by Besnik Bleta <besnikbleta@hotmail.com>

* sq.po: Added Albanian translation by Besnik Bleta <besnikbleta@hotmail.com>

20 years agoAdded Albanian file
Laurent Dhima [Fri, 29 Aug 2003 12:22:47 +0000 (12:22 +0000)]
Added Albanian file

* sq.po: Added Albanian file

20 years agobetter non-XP handle boxes
cinamod [Thu, 28 Aug 2003 18:36:17 +0000 (18:36 +0000)]
better non-XP handle boxes

20 years agoImprove PointerHint docs. Explain is_hint field in GdkEventMotion.
Matthias Clasen [Wed, 27 Aug 2003 22:59:47 +0000 (22:59 +0000)]
Improve PointerHint docs. Explain is_hint field in GdkEventMotion.

2003-08-28  Matthias Clasen  <maclas@gmx.de>

* gdk/tmpl/events.sgml: Improve PointerHint docs.
* gdk/tmpl/event_structs.sgml: Explain is_hint field in GdkEventMotion.
(#120542)
* gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
fix in the docs.

20 years agoChange the XML format: <Root> element is replaced by <ui>, <menu> element
Matthias Clasen [Wed, 27 Aug 2003 22:22:28 +0000 (22:22 +0000)]
Change the XML format: <Root> element is replaced by <ui>, <menu> element

2003-08-28  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkuimanager.c: Change the XML format:
<Root> element is replaced by <ui>,
<menu> element is replaced by <menubar>,
<submenu> element is replaced by <menu>,
<dockitem> element is replaced by <toolbar>,
<popups> element is gone,
verb attribute is replaced by action,
name defaults to action or the element name.

* gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by GtkActionEntry
and GtkRadioActionEntry. GtkActionEntry is simplified by removing
the user_data, entry_type and extra_data fields, GtkRadioActionEntry is
further simplified by removing the callback. The user_data can now be
specified as an argument to gtk_action_group_add_actions(). There is
a new method gtk_action_group_add_radio_actions(), which is similar
to gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
and a callback parameter in addition to the user_data. The callback
is connected to the ::changed signal of the first group member.
There are _full() variants taking a GDestroyNotify of
gtk_action_group_add_[radio_]actions().

* gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted
on every member of the radio group when the active member is changed.
Add an integer property "value", and a getter for the value of "value"
on the currently active group member.

* tests/testactions.c:
* tests/testmerge.c:
* tests/merge-[123].ui:
* demos/gtk-demo/appwindow.c: Adjust to these changes.

* gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.

20 years agoFocus the text view, so the tool bar won't have focus.
Anders Carlsson [Wed, 27 Aug 2003 17:18:50 +0000 (17:18 +0000)]
Focus the text view, so the tool bar won't have focus.

2003-08-27  Anders Carlsson  <andersca@gnome.org>

* demos/gtk-demo/appwindow.c (do_appwindow): Focus the
text view, so the tool bar won't have focus.

20 years agotooltips, handle boxes, menus, toolbars
cinamod [Tue, 26 Aug 2003 21:53:30 +0000 (21:53 +0000)]
tooltips, handle boxes, menus, toolbars

20 years ago0.3.0
Raymond Penners [Tue, 26 Aug 2003 18:45:08 +0000 (18:45 +0000)]
0.3.0

20 years agoFix variable declaration not at start of block. (#120371, Damien Carbery)
Owen Taylor [Tue, 26 Aug 2003 14:04:52 +0000 (14:04 +0000)]
Fix variable declaration not at start of block. (#120371, Damien Carbery)

Tue Aug 26 09:57:38 2003  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
        declaration not at start of block. (#120371, Damien Carbery)

20 years agoMy firstname is Frederic, not Federico :)
Frédéric Crozat [Tue, 26 Aug 2003 07:47:40 +0000 (07:47 +0000)]
My firstname is Frederic, not Federico :)

20 years agoUse gssize for length, not gsize.
Matthias Clasen [Tue, 26 Aug 2003 00:13:59 +0000 (00:13 +0000)]
Use gssize for length, not gsize.

2003-08-26  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize
for length, not gsize.

* gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to
<ui> and make it optional in strings. Rename verb to action, <dockitem>
to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.

* demos/gtk-demo/appwindow.c:
* tests/testactions.c:
* tests/testmerge.c:
* tests/merge-1.ui:
* tests/merge-2.ui:
* tests/merge-3.ui: Adjust to the new XML format.

20 years agoSince we add one to the layout's reported width to account for the cursor,
Owen Taylor [Tue, 26 Aug 2003 00:06:18 +0000 (00:06 +0000)]
Since we add one to the layout's reported width to account for the cursor,

Mon Aug 25 19:55:55 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktextview.c (gtk_text_view_update_layout_width):
        Since we add one to the layout's reported width to
        account for the cursor, we need to subtract one when
        setting the wrap width for the layout. (Fixes infinite
        loop (#120325, Federico Crozat)

        * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
        Be a bit more careful about rounding when converting
        wrapped width from Pango units to pixels.

20 years agoRename GtkMenuMerge to GtkUIManager
Matthias Clasen [Mon, 25 Aug 2003 23:15:12 +0000 (23:15 +0000)]
Rename GtkMenuMerge to GtkUIManager

20 years agoRename GtkMenuMerge to GtkUIManager.
Matthias Clasen [Mon, 25 Aug 2003 23:13:47 +0000 (23:13 +0000)]
Rename GtkMenuMerge to GtkUIManager.

20 years agoMake the previous commit compile.
Matthias Clasen [Mon, 25 Aug 2003 22:56:02 +0000 (22:56 +0000)]
Make the previous commit compile.