1. 20 Jul, 2004 2 commits
    • Matthias Clasen's avatar
      Add some refcount debugging. · 82877f9e
      Matthias Clasen authored
      2004-07-20  Matthias Clasen  <mclasen@redhat.com>
      
      	* tests/testactions.c (main):
      	* tests/testmerge.c (main): Add some refcount debugging.
      
      	* gtk/gtkuimanager.c (update_node, free_node): Ref an sink
      	all proxies, so that we can properly clean up floating proxies
      	which the app didn't adopt.  (#147926, Tommi Komulainen)
      82877f9e
    • Soeren Sandmann's avatar
      === Released 2.5.0 === · 9d2a9468
      Soeren Sandmann authored
      Sun Jul 18 17:21:10 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
              * === Released 2.5.0 ===
      
              * NEWS: updates
      
              * tests/testcombo.c: Fix compilation
      9d2a9468
  2. 07 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Support separators in combo boxes and more generally in tree views · 1aa00e52
      Matthias Clasen authored
      2004-07-07  Matthias Clasen  <mclasen@redhat.com>
      
      	Support separators in combo boxes and more generally in tree
      	views  (#135873):
      
      	* gtk/gtkcombobox.h:
      	* gtk/gtkcombobox.c (gtk_combo_box_get_row_separator_column):
      	* gtk/gtkcombobox.c (gtk_combo_box_set_row_separator_column):
      	Add a ::row-separator-column property with getter and setter,
      	which can indicate a boolean model column to determine which
      	rows are separators.
      
      	* gtk/gtkcombobox.c: Display separator rows as separator menu
      	items in menu mode, and by using the new treeview separator
      	functionality in list mode.
      
      	* gtk/gtktreeview.h:
      	* gtk/gtktreeview.c (gtk_tree_view_get_row_separator_func):
      	* gtk/gtktreeview.c (gtk_tree_view_set_row_separator_func):
      	Add a callback to determine whether a row is a separator.
      
      	* gtk/gtktreeview.c (gtk_tree_view_bin_expose):
      	* gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
      	* gtk/gtktreeview.c (validate_row): Use the new callback
      	to determine whether a row is a separator, and draw it
      	as a separator then. Since separators should take up less
      	vertical space than regular rows, this requires removing
      	the redundant MAX(...,expander_size) calls which appear in
      	many places. Instead, the MAX() is now only done in
      	validate_row(), and only if the row is not a separator.
      	To catch possible side effects of this intrusive change,
      	I have left EXPANDER_MAX() calls in place of the MAX() calls
      	which will emit a warning if something breaks. They should
      	be removed before 2.6.
      
      	* gtk/gtktreeselection.c (row_is_selectable): Don't let
      	separator rows be selected.
      
      	* tests/testcombo.c (create_blaat): Add a separator column.
      1aa00e52
  3. 05 Jun, 2004 1 commit
    • Soeren Sandmann's avatar
      Add a checkbox to queue an merge/unmerge. Patch from Matthias Clasen. · e47c0d46
      Soeren Sandmann authored
      Sat Jun  5 20:05:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* tests/testmerge.c: Add a checkbox to queue an
      	merge/unmerge. Patch from Matthias Clasen.
      
      	* gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Add a new flag
      	"need_rebuild"
      	(rebuild_menu): New function that rebuilds the overflow menu and
      	makes sure it doesn't start or end with a separator.
      	(toolbar_content_new_tool_item)
      	(toolbar_content_remove)
      	(toolbar_content_new_compatibility): Set the rebuild_needed flag
      	(gtk_toolbar_size_allocate): Only show the overflow arrow when we
      	have actually overflown an item with a proxy menu item. Also make
      	sure we rebuild the menu if needed.
      
      	Fix #125504, #142377, #143463
      
      	* gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose):
      	Obey the "priv->draw" flag. (#143692)
      e47c0d46
  4. 27 May, 2004 1 commit
  5. 12 May, 2004 1 commit
  6. 10 May, 2004 1 commit
  7. 01 May, 2004 1 commit
  8. 29 Apr, 2004 1 commit
    • Matthias Clasen's avatar
      Add a missing cat. (#141070, Chris Sherlock) · 3f571c18
      Matthias Clasen authored
      2004-04-29  Matthias Clasen  <mclasen@redhat.com>
      
      	* tests/testentrycompletion.c (main): Add a missing
      	cat.  (#141070, Chris Sherlock)
      
      	* gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Remove unused
      	variable.  (#141022, Chris Sherlock)
      
      	* gtk/gtkcombo.c (gtk_combo_popup_list): Add a missing
      	cast.  (#141013, Chris Sherlock)
      
      	* gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Remove
      	unused variable.  (#141011, Chris Sherlock)
      3f571c18
  9. 11 Apr, 2004 1 commit
    • Jonathan Blandford's avatar
      Moved search entries into priv data. · 0aebe343
      Jonathan Blandford authored
      Sun Apr 11 15:08:45 2004  Jonathan Blandford  <jrb@gnome.org>
      
              * gtk/gtktreeprivate.h: Moved search entries into priv data.
      
              * gtk/gtktreeview.c: Prep for type-ahead support.
      
              (gtk_tree_view_destroy): Destroy the search window explicitly.
              (gtk_tree_view_key_press): Minor change; prep for type-ahead
              (gtk_tree_view_ensure_interactive_directory): New function
              (gtk_tree_view_focus_out): Rework to handle new entry life-cycle.
              (gtk_tree_view_real_start_interactive_search): rework
              (gtk_tree_view_search_dialog_hide): ditto
              (gtk_tree_view_search_delete_event): ditto
              (gtk_tree_view_search_button_press_event): ditto
              (gtk_tree_view_search_key_press_event): ditto
              (gtk_tree_view_search_move): ditto
              (gtk_tree_view_search_init): ditto
      
              * gtk/gtktreeviewcolumn.c:
              (gtk_tree_view_column_cell_layout_clear): remove unused variable.
      
              * tests/testfilechooser.c: (main): change
      0aebe343
  10. 17 Mar, 2004 3 commits
  11. 15 Mar, 2004 2 commits
    • Jonathan Blandford's avatar
      Rewritten to use the GtkEntryCompletion API more correctly. Now pops down · 20808790
      Jonathan Blandford authored
      Mon Mar 15 01:50:28 2004  Jonathan Blandford  <jrb@gnome.org>
      
              * gtkfilechooserentry.c: Rewritten to use the GtkEntryCompletion
              API more correctly.  Now pops down the dropdown well.
      
              * gtkfilesystem.c (gtk_file_path_get_type): New boxed type for the
              FilePath.
      
              * test/testfilechooser.c: disable preview widget temporarily.
              It's not representative of a good preview widget.
      20808790
    • Owen Taylor's avatar
      #136672, reported by Christian Persch; fixes based on a patch by Soeren · 3895bea4
      Owen Taylor authored
      Sun Mar 14 19:26:48 2004  Owen Taylor  <otaylor@redhat.com>
      
              #136672, reported by Christian Persch; fixes based
              on a patch by Soeren Sandmann.
      
              * gtk/gtkmenu.c: Change the handling of mixed gridded
              and non-gridded menu items; the old method was causing
              major performance problems even with the "avoid relayout
              on destruction" hack put in recently.
      
              Now we first lay out the gridded items and then put the
              non-gridded items into empty rows / after the gridded items.
              Layout is done in a central menu_shell_ensure_layout(). Also
              avoid emitting property notifications when we initially
              insert or attach items.
      
              * gtk/gtkmenushell.[ch] gtk/gtkmenu.c: Stop setting the
              unused menu_shell->menu_flag, and document it as unused
              in the header.
      
              * tests/testactions.c: Add a test of creating/removing
              lots of items.
      
              * test/testgtk.c: Add some more cruft to the menu test.
      3895bea4
  12. 14 Mar, 2004 1 commit
  13. 12 Mar, 2004 2 commits
  14. 11 Mar, 2004 1 commit
  15. 10 Mar, 2004 2 commits
    • Morten Welinder's avatar
      Add support for --multiple. · 4061a444
      Morten Welinder authored
      2004-03-10  Morten Welinder  <terra@gnome.org>
      
      	* tests/testfilechooser.c (main): Add support for --multiple.
      4061a444
    • Jonathan Blandford's avatar
      Support changes in icon themes. · c630462c
      Jonathan Blandford authored
      Wed Mar 10 02:41:05 2004  Jonathan Blandford  <jrb@gnome.org>
      
              * gtk/gtkpathbar.c: (gtk_path_bar_init), (gtk_path_bar_class_init),
              (remove_settings_signal), (gtk_path_bar_dispose),
              (gtk_path_bar_style_set), (gtk_path_bar_screen_changed),
              (gtk_path_bar_scroll_up), (reload_icons), (change_icon_theme),
              (settings_notify_cb), (gtk_path_bar_check_icon_theme),
              (get_button_image), (gtk_path_bar_update_button_appearance),
              (make_directory_button), (gtk_path_bar_check_parent_path): Support
              changes in icon themes.
      
              * gtk/gtkpathbar.h: add two elements
      
              * tests/testfilechooser.c: (main): use gnome-vfs method again to
              get more testing.
      c630462c
  16. 09 Mar, 2004 1 commit
  17. 08 Mar, 2004 4 commits
    • Jonathan Blandford's avatar
      new function to consolidate creating the path_bar. · 59938d92
      Jonathan Blandford authored
      Mon Mar  8 04:50:12 2004  Jonathan Blandford  <jrb@gnome.org>
      
              * gtk/gtkfilechooserdefault.c (create_path_bar): new function to
              consolidate creating the path_bar.
              (gtk_file_chooser_default_set_current_folder): no longer need to
              pass in the filesystem.
      
              * gtk/gtkpathbar.h: Removed unused set_pixbuf functions in favor
              of just setting the filesystem.
      
              * gtk/gtkpathbar.c (gtk_path_bar_finalize): Free root path and
              home_dir.
              (get_button_image): Add images to path_bar.
              (update_button_appearance): use images
              (make_directory_button): Clasify buttons based upon location.
              (_gtk_path_bar_set_path): no longer need a file-system.  Also, add
              rerooting, #135845, #135914
      
              * tests/testfilechooser.c: Fix reused error handling.
      59938d92
    • Tor Lillqvist's avatar
      Correct localtime_r() emulation on Win32. Remove a couple of unnecessary · 9d55608c
      Tor Lillqvist authored
      2004-03-08  Tor Lillqvist  <tml@iki.fi>
      
      	* tests/testfilechooser.c: Correct localtime_r() emulation on Win32.
      	Remove a couple of unnecessary Win32-only includes.
      9d55608c
    • Christian Neumair's avatar
      Fixed typo in entry completion test. · 4c24377f
      Christian Neumair authored
      4c24377f
    • Matthias Clasen's avatar
      Test dynamic addition/removal. · bc830c88
      Matthias Clasen authored
      Mon Mar  8 01:06:17 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* tests/testentrycompletion.c: Test dynamic addition/removal.
      
      Sun Mar  7 22:38:49 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkframe.c (gtk_frame_paint): Use ythickness, not
      	xthickness in the calculation of vertical dimensions.
      bc830c88
  18. 07 Mar, 2004 1 commit
    • Hans Breuer's avatar
      some more settings from system, also reflect some name changes done a · 985e3a24
      Hans Breuer authored
      2004-03-07  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting) :
      	some more settings from system, also reflect some name changes
      	done a while ago in the x11 backend
      
      	* gdk/win32/makefile.msc : build gdkspawn-win32.c
      
      	* gtk/gtkdnd.c : gtk_drag_source_[gs]et_target_list, added "Since: 2.4"
      
      	* gtk/makefile.msc.in : build gtkpathbar, link shell32.lib
      
      	* tests/makefile.msc : some more tests get build
      985e3a24
  19. 06 Mar, 2004 1 commit
  20. 03 Mar, 2004 3 commits
    • Mark McLoughlin's avatar
      don't try and store pointers in ints. Fixes 64-bit build. · 81ea4248
      Mark McLoughlin authored
      2004-03-03  Mark McLoughlin  <mark@skynet.ie>
      
              * tests/testsocket_common.c: (print_hello): don't try and store
              pointers in ints. Fixes 64-bit build.
      81ea4248
    • Morten Welinder's avatar
      Plug leak. · eb7f75b7
      Morten Welinder authored
      2004-03-03  Morten Welinder  <terra@gnome.org>
      
      	* tests/testfilechooser.c (update_preview_cb): Plug leak.
      eb7f75b7
    • Jonathan Blandford's avatar
      Split function into realized and unrealized variants, and consolidate the · bb5a4999
      Jonathan Blandford authored
      Tue Mar  2 23:39:55 2004  Jonathan Blandford  <jrb@gnome.org>
      
              * gtk/gtkfilechooserdialog.c
              (file_chooser_widget_default_realized_size_changed): Split
              function into realized and unrealized variants, and consolidate
              the handling fo size-changing and default changing.
      
              * gtk/gtkfilechooserembed.[ch] (gtk_file_chooser_embed_class_init):
              remove resizable-hints-changed, as it just complicated things.
      
              * gtk/gtkfilechooserdefault.c (update_appearance): Don't emit
              resizable-hints-changed.
      bb5a4999
  21. 02 Mar, 2004 9 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
      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
    • 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
    • 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
    • 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