1. 03 Mar, 2004 2 commits
    • Tor Lillqvist's avatar
      Add a missing entry. (#135982, J. Ali Harlow) · 9ca11bfa
      Tor Lillqvist authored
      2004-03-03  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk/gtk.def: Add a missing entry. (#135982, J. Ali Harlow)
      
      	* NEWS: Correct spelling of my name in one place.
      9ca11bfa
    • Federico Mena Quintero's avatar
      Handle errors in setting the path bar's path. Fixes #136000, based on a · e50fb687
      Federico Mena Quintero authored
      2004-03-02  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkfilechooserdefault.c
      	(gtk_file_chooser_default_set_current_folder): Handle errors in
      	setting the path bar's path.  Fixes #136000, based on a patch by
      	Morten Welinder.
      
      	* gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
      	Don't free our own propagated error.
      
      	* gtk/gtkpathbar.c (gtk_path_bar_set_path): Likewise, and free the
      	parent_path upon error.  Fixes #136006, patch by Morten Welinder.
      	(gtk_path_bar_set_path): Unref the file_folder upon error.
      	(gtk_path_bar_set_path): Return a boolean success code.
      e50fb687
  2. 02 Mar, 2004 23 commits
    • Matthias Clasen's avatar
      Add an animation mode, to test how the combobox behaves if the model · 2169f509
      Matthias Clasen authored
      Wed Mar  3 00:28:59 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* tests/testcombochange.c: Add an animation mode, to test
      	how the combobox behaves if the model changes while it is popped
      	up.
      2169f509
    • Owen Taylor's avatar
      === Released 2.3.5 === · 30121c9a
      Owen Taylor authored
      Tue Mar  2 17:06:05 2004  Owen Taylor  <otaylor@redhat.com>
      
              * === Released 2.3.5 ===
      
              * NEWS: Updates
      
              * configure.in: Version 2.3.5, interface age 0.
              Require glib-2.3.5, pango-1.3.5.
      30121c9a
    • Matthias Clasen's avatar
      Avoid popping up the completions across the edge of the monitor. Part of · f2cc9ae8
      Matthias Clasen authored
      Tue Mar  2 23:08:12 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Avoid
      	popping up the completions across the edge of the monitor.
      	Part of #135561.
      f2cc9ae8
    • Owen Taylor's avatar
      Move the /nonexistant stuff out of the main window, keep the main window · ce52e077
      Owen Taylor authored
      Tue Mar  2 16:47:40 2004  Owen Taylor  <otaylor@redhat.com>
      
              * tests/testfilechooser.c (set_filename_existing_nonexistent_cb):
              Move the /nonexistant stuff out of the main window,
              keep the main window somewhat normal looking.
      ce52e077
    • Owen Taylor's avatar
      gtk/gtktreestore.c (gtk_tree_store_reorder) Fix up the interpretation of · d0f6b481
      Owen Taylor authored
      Tue Mar  2 16:18:43 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktreestore.c (gtk_tree_store_reorder)
              * gtk/gtkliststore.c (gtk_list_store_reorder): Fix
              up the interpretation of new_order to match what
              it means elsewhere, document the meaning of new_order.
      
              * gtk/gtkcombobox.c (gtk_combo_box_model_rows_reordered):
              Fix interpretation of new_order.
      
              * tests/testcombochange.c (on_reorder): Fix interpretation
              of new_order.
      
              * tests/testcombochange.c (on_reorder): Fix hitting
              "reorder" with an empty list.
      d0f6b481
    • Søren Sandmann Pedersen's avatar
      Remove conflict markers · 32e21f2b
      Søren Sandmann Pedersen authored
      32e21f2b
    • Soeren Sandmann's avatar
      Patch from Frederic Crozat, test code from Jean-Philippe Chancelier. Fixes · cddfd994
      Soeren Sandmann authored
      Tue Mar  2 21:23:30 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	Patch from Frederic Crozat, test code from Jean-Philippe
      	Chancelier. Fixes bug #120479.
      
      	* gtk/gtkcombo.c (gtk_combo_popup_list): Make sure popup belongs
      	to the right window group.
      
      	* gtk/gtkmenu.c (gtk_menu_popup): Same
      
      	* tests/testsocket.c (main): Pack the plugs into an hbox instead
      	of a vbox.
      
      	* tests/testsocket_common.c: Add a GtkMenuBar, a GtkCombo and a
      	GtkComboBox to the children.
      cddfd994
    • Owen Taylor's avatar
      If the model was empty before, select the first inserted item. · f05cb42d
      Owen Taylor authored
      Tue Mar  2 14:38:23 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
              If the model was empty before, select the first inserted
              item.
      
              * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted):
              Fix up the logic for the new row to select.
      
              * gtk/gtkcombobox.c (gtk_combo_box_class_init):
              Rename "appearance" property to "appears-as-list".
      
              * tests/testcombochange.c tests/Makefile.am: Test case
              for combos and dynamically changing models.
      f05cb42d
    • Jonathan Blandford's avatar
      set the default value, spotted by Morten Welinder. · e8c5b648
      Jonathan Blandford authored
      Tue Mar  2 15:19:52 2004  Jonathan Blandford  <jrb@redhat.com>
      
              * gtk/gtkfilechooserdefault.c
              (gtk_file_chooser_default_get_resizable_hints): set the default
              value, spotted by Morten Welinder.
      e8c5b648
    • Jonathan Blandford's avatar
      get the logic correct. This will fix sizing on save dialogs. · 87a6680f
      Jonathan Blandford authored
      Tue Mar  2 15:03:15 2004  Jonathan Blandford  <jrb@redhat.com>
      
              * gtk/gtkfilechooserdefault.c
              (gtk_file_chooser_default_get_resizable_hints): get the logic
              correct.  This will fix sizing on save dialogs.
      
              (save_widgets_create): set_mnemonic_widget.
      87a6680f
    • Federico Mena Quintero's avatar
      Don't update the save folder combo if we are already switching folders; · 9133c58b
      Federico Mena Quintero authored
      2004-03-02  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkfilechooserdefault.c
      	(gtk_file_chooser_default_set_current_folder): Don't update the
      	save folder combo if we are already switching folders; based on a
      	patch by Jonathan Blandford.
      
      	* gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
      	Handle failure to insert the path.  Based on a patch by Morten
      	Welinder attached to bug #135380.
      
      	* tests/testfilechooser.c (extra_widget_create): Add a bunch of
      	buttons to test various things.
      9133c58b
    • Matthias Clasen's avatar
      Add testentrycompletion. · 596cbff9
      Matthias Clasen authored
      Tue Mar  2 20:59:23 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* tests/Makefile.am: Add testentrycompletion.
      
      	* tests/testentrycompletion.c: New file to test some of the
      	more exotic GtkEntryCompletion features.
      596cbff9
    • Jonathan Blandford's avatar
      improve tests a little. · fe8838bc
      Jonathan Blandford authored
      Tue Mar  2 14:38:10 2004  Jonathan Blandford  <jrb@redhat.com>
      
              * tests/testfilechooser.c (main): improve tests a little.
      fe8838bc
    • Owen Taylor's avatar
      Always connect to the changed signals on the model, update the active item · 1d64b555
      Owen Taylor authored
      Tue Mar  2 11:45:50 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkcombobox.c: Always connect to the changed
              signals on the model, update the active item as
              appropriate when rows are inserted/deleted/reordered,
              re-layout the menu on ::rows-reordered.
      
              * gtk/gtkcellview.c (gtk_cell_view_set_displayed_row):
              Allow %NULL for path to unset and leave no current
              path.
      1d64b555
    • Matthias Clasen's avatar
      Position the popup above the sample if there is not enough room below. · de011a6d
      Matthias Clasen authored
      Tue Mar  2 19:54:53 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcombobox.c (gtk_combo_box_list_position): Position
      	the popup above the sample if there is not enough room below.
      	Part of #135543.
      
      Tue Mar  2 19:53:36 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make the
      	frame for the list mode etched in, to give the popup a slightly
      	less flat appearance.
      
      Tue Mar  2 17:55:31 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtk.def: Add gtk_combo_box_entry_new_text().
      de011a6d
    • Morten Welinder's avatar
      Don't scale images that are small enough to fit. Avoid using incompatibly · e4cec76b
      Morten Welinder authored
      2004-03-02  Morten Welinder  <terra@gnome.org>
      
      	* tests/testfilechooser.c (size_prepared_cb): Don't scale images
      	that are small enough to fit.  Avoid using incompatibly typed data
      	pointer.
      e4cec76b
    • Morten Welinder's avatar
      Major thinko, trivial patch. /me chances a commit. · c0b55fe0
      Morten Welinder authored
      2004-03-02  Morten Welinder  <terra@gnome.org>
      
      	* gtk/gtkfilechooserdefault.c
      	(gtk_file_chooser_default_get_resizable_hints): Test the
      	resize_horizontally pointer, not the deferenced pointer.
      c0b55fe0
    • Federico Mena Quintero's avatar
      New flag shortcuts_current_folder_is_volume. · af409998
      Federico Mena Quintero authored
      2004-03-01  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): New
      	flag shortcuts_current_folder_is_volume.
      	(shortcuts_add_current_folder): Set
      	impl->shortcuts_current_folder_is_volume as appropriate.
      	(remove_current_folder_cb): Handle the flag.
      	(shortcuts_activate_item): Likewise.
      	(shortcuts_update_current_folder): Handle the
      	impl->shortcuts_current_folder_active flag; only add the folder if
      	it doesn't already exist in the list.
      	(shortcuts_model_create): Don't insert the current folder
      	separator here.
      	(shortcuts_add_current_folder): Insert the separator here.
      	(shortcut_find_position): Renamed from shortcut_exists(); now
      	returns an index.
      	(shortcuts_add_current_folder): Set the active item in the combo.
      af409998
    • Federico Mena Quintero's avatar
      Eep, use gtk_tree_model_filter_convert_iter_to_child_iter(), not the · 4e08da81
      Federico Mena Quintero authored
      2004-03-01  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Eep,
      	use gtk_tree_model_filter_convert_iter_to_child_iter(), not the reverse.
      4e08da81
    • Federico Mena Quintero's avatar
      Don't unref an old model; there isn't one. This was a leftover from when · 7233e912
      Federico Mena Quintero authored
      2004-03-01  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkfilechooserdefault.c (shortcuts_model_create): Don't
      	unref an old model; there isn't one.  This was a leftover from
      	when we recreated the model on every change.
      	(save_widgets_create): Create the save folder combo.
      	(shortcuts_model_create): Don't set the model on the tree view
      	here.
      	(gtk_file_chooser_default_constructor): Create the shortcuts model
      	here, before the rest of the widgets.
      	(shortcuts_list_create): Don't call shortcuts_model_create() here;
      	just set the model on the tree.
      	(save_folder_combo_create): New function, provided by Jonathan
      	Blandford.
      	(update_appearance): Set the sensitivity of the folder combo.
      	(shortcuts_activate_iter): New helper function; code moved from
      	shortcuts_row_activated_cb().
      	(shortcuts_activate_item): New helper function.
      	(shortcuts_row_activated_cb): Use shortcuts_activate_iter().
      	(ShortcutsIndex): Renamed SHORTCUTS_SEPARATOR to
      	SHORTCUTS_BOOKMARKS_SEPARATOR.
      	(struct _GtkFileChooserDefault): New field shortcuts_current_folder_active.
      	(shortcuts_insert_separator): Add a position argument.
      	(shortcuts_get_index): Handle the SHORTCUTS_CURRENT_FOLDER_SEPARATOR
      	and SHORTCUTS_CURRENT_FOLDER positions.
      	(shortcut_exists): Ignore the current folder row.
      	(struct _GtkFileChooserDefault): New field shortcuts_filter_model.
      	(shortcuts_model_create): Create a filter model for the shortcuts list.
      	(shortcuts_list_create): Set the model to the shortcuts_filter_model.
      	(remove_bookmark_button_clicked_cb): Use the shortcuts_filter_model.
      	(bookmarks_check_remove_sensitivity): Likewise.
      	(shortcuts_row_activated_cb): Likewise.
      	(gtk_file_chooser_default_set_current_folder): New function.
      	(gtk_file_chooser_default_set_current_folder): Update the current
      	folder row in the shortcuts list.
      
      	* gtk/gtkfilechooserwidget.c
      	(gtk_file_chooser_widget_constructor): Cast correctly for
      	_gtk_file_chooser_embed_set_delegate().
      7233e912
    • Owen Taylor's avatar
      Add gtk_drag_source_set/get_target_list(). (#127499, based on patch from · d52caae6
      Owen Taylor authored
      Mon Mar  1 19:30:25 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkdnd.[ch]: Add gtk_drag_source_set/get_target_list().
              (#127499, based on patch from Michael Natterer)
      
              * tests/testgtk.c: Fix bidi strings to display correctly
              with new auto-bidi.
      d52caae6
    • Matthias Clasen's avatar
      Remove the include of Xft.h, which is already dragged in via pangoxft.h. · 7002bb3e
      Matthias Clasen authored
      Tue Mar  2 01:34:40 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtksettings.c: Remove the include of Xft.h, which is already
      	dragged in via pangoxft.h.  (#135496, David Hawthorne)
      7002bb3e
    • Tim Janik's avatar
      expose gtk_bindings_activate_event(), changed callers. · c454880a
      Tim Janik authored
      Mon Mar  1 23:52:15 2004  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkbindings.[hc]: expose gtk_bindings_activate_event(), changed
              callers.
      
              * gtk/gtkwindow.[hc]: added gtk_window_propagate_key_event() to expose
              the key event propagation mechanism used for focus widgets.
              (gtk_window_key_release_event): use the same key event propagation logic
              as gtk_window_key_press_event().
      c454880a
  3. 01 Mar, 2004 15 commits
    • Simon Budig's avatar
      X11 R6.4 specifies 15 events for the XInput extension. We want to see them · c04ecdaa
      Simon Budig authored
      2004-03-01  Simon Budig  <simon@gimp.org>
      
      	* gdk/x11/gdkinput-x11.c: X11 R6.4 specifies 15 events
      	for the XInput extension. We want to see them all.
      	We now get Proximity Out events again. Fixes bug #135320.
      c04ecdaa
    • Matthias Clasen's avatar
      Use case-insensitive comparison. Fixes XIM module loading on AIX. · 9f13de7e
      Matthias Clasen authored
      Tue Mar  2 00:47:21 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkimmodule.c (match_locale): Use case-insensitive
      	comparison. Fixes XIM module loading on AIX.  (#131277)
      9f13de7e
    • Matthias Clasen's avatar
      Make it work correctly when the child model is cleared completely. · f94e21be
      Matthias Clasen authored
      Mon Mar  1 23:59:18 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted):
      	Make it work correctly when the child model is cleared
      	completely. (#121633)
      f94e21be
    • Michael Natterer's avatar
      removed accidentially committed char which broke the build. · 11258afd
      Michael Natterer authored
      2004-03-01  Michael Natterer  <mitch@gimp.org>
      
      	* gtk/gtkfilechooserwidget.h: removed accidentially committed char
      	which broke the build.
      11258afd
    • Jonathan Blandford's avatar
      only store the size if we can resize in that direction. · a11c1bd6
      Jonathan Blandford authored
      Mon Mar  1 16:51:21 2004  Jonathan Blandford  <jrb@redhat.com>
      
              * gtk/gtkfilechooserdialog.c
              (file_chooser_widget_default_size_changed): only store the size if
              we can resize in that direction.
      a11c1bd6
    • Jonathan Blandford's avatar
      new function. Long name. · e6b21aec
      Jonathan Blandford authored
      Mon Mar  1 16:32:52 2004  Jonathan Blandford  <jrb@redhat.com>
      
              * gtk/gtkfilechooserwidget.c
              (gtk_file_chooser_widget_new_with_backend): new function.  Long
              name.
      e6b21aec
    • Morten Welinder's avatar
      Only stat when needed. · b45b1536
      Morten Welinder authored
      2004-03-01  Morten Welinder  <terra@gnome.org>
      
      	* gtk/gtkfilesystemunix.c (filename_get_info): Only stat when
      	needed.
      b45b1536
    • Morten Welinder's avatar
      Simplify semantics and check for errors. · 8ddff5b0
      Morten Welinder authored
      2004-03-01  Morten Welinder  <terra@gnome.org>
      
      	* gtk/gtkfilesystemmodel.c (file_model_node_is_visible): Simplify
      	semantics and check for errors.
      
      	* gtk/gtkpathbar.c (gtk_path_bar_set_path): Propagate errors.
      
      	* gtk/gtkfilefilter.c (gtk_file_filter_filter): Don't crash if
      	display_name is NULL.
      8ddff5b0
    • Owen Taylor's avatar
      Based on patch by Alex Larsson · 945e6c4e
      Owen Taylor authored
      Mon Mar  1 14:16:52 2004  Owen Taylor  <otaylor@redhat.com>
      
              Based on patch by Alex Larsson
      
              * gtk/gtkfilechooserdefault.c: Use gtk-file-chooser-backend
              GtkSetting to set the backend if the app doesn't specify one.
      
              * gdk/x11/gdkevents-x11.c gtk/gtksettings.c:
              Add Gtk/FileChooserBackend.
      945e6c4e
    • Tim Janik's avatar
      - exit with $? instead of 1 in case of failure - exit with $? if · 934b1b41
      Tim Janik authored
      Mon Mar  1 20:32:06 2004  Tim Janik  <timj@gtk.org>
      
              * autogen.sh:
              - exit with $? instead of 1 in case of failure
              - exit with $? if ./configure failed
                (that's so autogen.sh && make lines work)
              - removed --enable-gtk-doc option
              - added $AUTOGEN_CONFIGURE_ARGS
      934b1b41
    • Federico Mena Quintero's avatar
      Test for filter_info.uri correctly. Fixes #135379, pointed out by Damon · 0775cd28
      Federico Mena Quintero authored
      2004-03-01  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkfilechooserdefault.c (list_model_filter_func): Test for
      	filter_info.uri correctly.  Fixes #135379, pointed out by Damon
      	Chaplin.
      	(shortcuts_get_index): Compute the bookmarks index correctly.
      	Fixes #135714, pointed out by Damon Chaplin.
      	(gtk_file_chooser_default_list_shortcut_folders): Handle the case
      	with no shortcuts, and don't run off the end of the list if there
      	are no bookmarks and their separator.  Fixes #135572, patch by
      	Damon Chaplin.
      0775cd28
    • Owen Taylor's avatar
      Handle dynamically resolved bidi direction when drawing the cursor. · fa4514af
      Owen Taylor authored
      Mon Mar  1 12:23:06 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtklabel.c: Handle dynamically resolved bidi direction
              when drawing the cursor. (#118541)
      
              * gtk/gtkentry.c (get_better_cursor_x): Use entry->resolved_dir;
      
              * gtk/gtkentry.c (draw_insertion_cursor): Fix up
              some confusion in parameter ordering.
      fa4514af
    • Jonathan Blandford's avatar
      Handle shrinking/growing. · 8f190fbf
      Jonathan Blandford authored
      Mon Mar  1 12:05:54 2004  Jonathan Blandford  <jrb@redhat.com>
      
              * gtk/gtkfilechooserdialog.c
              (file_chooser_widget_resizable_hints_changed): Handle
              shrinking/growing.
      8f190fbf
    • Michael Natterer's avatar
      removed underscores from calls to gtk_text_btree_resolve_bidi(). · ebd7d168
      Michael Natterer authored
      2004-03-01  Michael Natterer  <mitch@gimp.org>
      
      	* gtk/gtktextbtree.c: removed underscores from calls to
      	gtk_text_btree_resolve_bidi().
      ebd7d168
    • Owen Taylor's avatar
      Patch from Dov Grobgeld to implement auto-bidi-direction for GtkTextView · 8130a8a2
      Owen Taylor authored
      Mon Mar  1 10:41:27 2004  Owen Taylor  <otaylor@redhat.com>
      
              Patch from Dov Grobgeld to implement auto-bidi-direction
              for GtkTextView (#118543)
      
              * gtk/gtktextbtree.[ch]: Resolve bidi base direction
              for each line by propagating backwards/forwards as
              necessary.
      
              * gtk/gtktextlayout.[ch] gtk/gtktextview.c: Set the
              bidi base direction for the ;ine with the cursor from
              the keyboard direction. Add gtk_text_layout_set_keyboard_direction().
      
      Mon Mar  1 10:31:11 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkentry.[ch]: Implement auto-bidi-direction,
              based on a patch from Dov Grobgeld. (#118540)
      8130a8a2