1. 08 Jul, 2004 2 commits
  2. 07 Jul, 2004 4 commits
    • Matthias Clasen's avatar
      Small documentation fixes. · f2ac3233
      Matthias Clasen authored
      2004-07-07  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktreeview.c:
      	* gtk/gtktreeview.h: Small documentation fixes.
      f2ac3233
    • Matthias Clasen's avatar
      Small documentation fixes. · 84a6adf8
      Matthias Clasen authored
      2004-07-07  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktreeview.c:
      	* gtk/gtktreeview.h: Small documentation fixes.
      84a6adf8
    • Matthias Clasen's avatar
      Forgotten file. · bb4a9f90
      Matthias Clasen authored
      bb4a9f90
    • 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. 06 Jul, 2004 6 commits
    • Matthias Clasen's avatar
      Add stock_file_16.png, stock_file_24.png, stock_directory_16.png and · 6b27f206
      Matthias Clasen authored
      2004-07-06  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/stock-icons/Makefile.am: Add stock_file_16.png,
      	stock_file_24.png, stock_directory_16.png and stock_directory_24.png.
      
      	* gtk/gtkstock.h (GTK_STOCK_FILE, GTK_STOCK_DIRECTORY):
      	* gtk/gtkiconfactory.c (get_default_icons): New stock icons as
      	fallbacks for gtkfilechooser. Currently these are the same images
      	as the "new" and "open" items...
      6b27f206
    • Jonathan Blandford's avatar
      Fix for #136496, Pawel Salek: · f80b81db
      Jonathan Blandford authored
      Tue Jul  6 10:00:22 2004  Jonathan Blandford  <jrb@redhat.com>
      
      	Fix for #136496, Pawel Salek:
      
      	* gtk/gtktreeview.c (gtk_tree_view_row_changed): Queue a redraw on
      	a node when it changes in fixed_height mode.
      
      	(gtk_tree_view_node_queue_redraw): new function to queue a redraw
      	on a node.
      f80b81db
    • Matthias Clasen's avatar
      Make sure private->monitor_num is a valid monitor number before using it. · aa794a66
      Matthias Clasen authored
      2004-07-06  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkmenu.c (gtk_menu_position): Make sure
      	private->monitor_num is a valid monitor number before
      	using it.  (#139187, Michael Natterer)
      
      2004-06-25  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkfontbutton.c (gtk_font_button_update_font_info): Avoid
      	a crash if the font doesn't exist.  (#144967, Yevgen Muntyan)
      aa794a66
    • Matthias Clasen's avatar
      Improve positioning of keyboard-activated menus with Xinerama. · ed4707d5
      Matthias Clasen authored
      Tue Jul  6 02:00:28 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkfilechooserdefault.c (popup_position_func):
      	* gtk/gtkentry.c (popup_position_func):
      	* gtk/gtktextview.c (popup_position_func): Improve positioning
      	of keyboard-activated menus with Xinerama.
      ed4707d5
    • Matthias Clasen's avatar
      Only call GDK_THREADS_ENTER() / _LEAVE() when called from an idle handler. · f7048ba1
      Matthias Clasen authored
      Tue Jul  6 00:29:03 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkuimanager.c (do_updates):
      	(do_updates_idle): Only call GDK_THREADS_ENTER() / _LEAVE()
      	when called from an idle handler.  (#145429, Jan-Marek Glogowski)
      f7048ba1
    • Matthias Clasen's avatar
      Use the less efficient g_object_interface_find_property () instead of the · 2a74feb0
      Matthias Clasen authored
      Mon Jul  5 23:47:38 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkfilechooserutils.c (delegate_notify): Use
      	the less efficient g_object_interface_find_property () instead
      	of the param_id range check, since the GParamSpecs we're
      	dealing with are the overridden onces on the interface, whose
      	param_id is always zero.  (#145312, Alex Roitman, fix proposed
      	by Owen Taylor)
      2a74feb0
  4. 05 Jul, 2004 2 commits
  5. 04 Jul, 2004 8 commits
    • Anders Carlsson's avatar
      Add an "activate_cursor_item" action signal and bind it to the return key. · d8ef8e36
      Anders Carlsson authored
      2004-07-05  Anders Carlsson  <andersca@gnome.org>
      
      	* gtk/gtkiconview.c: (gtk_icon_view_class_init),
      	(gtk_icon_view_real_select_cursor_item),
      	(gtk_icon_view_real_activate_cursor_item):
      	* gtk/gtkiconview.h:
      	Add an "activate_cursor_item" action signal
      	and bind it to the return key.
      d8ef8e36
    • Anders Carlsson's avatar
      Add a simple file browser based on the icon view. · 57f0d6a2
      Anders Carlsson authored
      2004-07-04  Anders Carlsson  <andersca@gnome.org>
      
      	* demos/gtk-demo/Makefile.am:
      	* demos/gtk-demo/gnome-fs-directory.png:
      	* demos/gtk-demo/gnome-fs-regular.png:
      	* demos/gtk-demo/iconview.c: (load_pixbufs), (fill_store),
      	(sort_func), (create_store), (item_activated), (up_clicked),
      	(home_clicked), (do_iconview):
      	Add a simple file browser based on the icon view.
      
      	* gtk/gtk.h:
      	Add gtk/gtkiconview.h
      
      	* gtk/gtkiconview.c: (gtk_icon_view_layout),
      	(gtk_icon_view_item_new), (gtk_icon_view_item_activated):
      	Fix a few bugs discovered while writing the demo.
      57f0d6a2
    • Anders Carlsson's avatar
      Fix a small issue · 4e20d3bc
      Anders Carlsson authored
      4e20d3bc
    • Anders Carlsson's avatar
      gtk/gtkiconview.c Add GtkIconView to the build, remove debugging output. · 8970881f
      Anders Carlsson authored
      2004-07-04  Anders Carlsson  <andersca@gnome.org>
      
      	* gtk/Makefile.am:
      	* gtk/gtkiconview.c
      	* gtk/gtkiconview.h:
      	Add GtkIconView to the build, remove debugging output.
      8970881f
    • Anders Carlsson's avatar
      Fix the "selection_changed" signal to not get emitted twice in some cases. · 17c3df34
      Anders Carlsson authored
      2004-07-04  Anders Carlsson  <andersca@gnome.org>
      
      	* configure.in:
      	* libegg/iconlist/eggiconlist.c: (egg_icon_list_expose),
      	(scroll_timeout), (egg_icon_list_motion),
      	(egg_icon_list_button_press), (egg_icon_list_update_rubberband),
      	(egg_icon_list_start_rubberbanding),
      	(egg_icon_list_stop_rubberbanding),
      	(egg_icon_list_unselect_all_internal),
      	(egg_icon_list_real_select_all),
      	(egg_icon_list_adjustment_changed), (egg_icon_list_item_free),
      	(egg_icon_list_select_item), (verify_items),
      	(egg_icon_list_row_changed), (egg_icon_list_row_inserted),
      	(egg_icon_list_row_deleted), (egg_icon_list_rows_reordered),
      	(egg_icon_list_select_all_between),
      	(egg_icon_list_move_cursor_up_down),
      	(egg_icon_list_move_cursor_page_up_down),
      	(egg_icon_list_move_cursor_left_right),
      	(egg_icon_list_move_cursor_start_end), (egg_icon_list_set_model),
      	(egg_icon_list_get_selected_items), (egg_icon_list_select_all),
      	(egg_icon_list_unselect_all):
      	* libegg/iconlist/eggiconlist.h:
      	* libegg/iconlist/testiconlist.c: (foreach_selected_remove):
      	Fix the "selection_changed" signal to not get emitted twice in some cases.
      	Also fix a bunch of issues reported by Jonathan.
      17c3df34
    • Matthias Clasen's avatar
      Fix off-by-one error. GDate month is one-based and GtkCalendar month is · fd10968b
      Matthias Clasen authored
      Sun Jul  4 01:29:35 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcalendar.c (gtk_calendar_drag_data_get):
      	(gtk_calendar_drag_data_received): Fix off-by-one error.
      	GDate month is one-based and GtkCalendar month is zero-based.
      	(#145134, William Jon McCann)
      fd10968b
    • Matthias Clasen's avatar
      Don't crash if somebody tries to move a node after itself in a list of · b98e17c8
      Matthias Clasen authored
      Sun Jul  4 01:11:07 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktreestore.c (gtk_tree_store_move): Don't crash if
      	somebody tries to move a node after itself in a list of
      	length 1.  (#145291, Sampo Nurmentaus)
      b98e17c8
    • Matthias Clasen's avatar
      Fix links to www.freedesktop.org. (#145210, Billy Biggs) · e3fbe3c1
      Matthias Clasen authored
      Sat Jul  3 23:43:23 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* docs/faq/gtk-faq.sgml:
      	* gtk/gtkwindow.c: Fix links to www.freedesktop.org.  (#145210,
      	Billy Biggs)
      e3fbe3c1
  6. 03 Jul, 2004 8 commits
    • Anders Carlsson's avatar
      Fix a few things · 08d94851
      Anders Carlsson authored
      08d94851
    • Anders Carlsson's avatar
      Fixes and stuff · 5cb796a4
      Anders Carlsson authored
      5cb796a4
    • Anders Carlsson's avatar
      Document functions and fix a few bugs. · da6fe168
      Anders Carlsson authored
      2004-07-03  Anders Carlsson  <andersca@gnome.org>
      
      	* libegg/iconlist/eggiconlist.c: (egg_icon_list_add_move_binding),
      	(egg_icon_list_real_move_cursor), (egg_icon_list_new),
      	(egg_icon_list_new_with_model), (egg_icon_list_get_path_at_pos),
      	(egg_icon_list_selected_foreach),
      	(egg_icon_list_set_selection_mode),
      	(egg_icon_list_get_selection_mode), (egg_icon_list_set_model),
      	(egg_icon_list_get_model), (egg_icon_list_set_text_column),
      	(egg_icon_list_get_text_column), (egg_icon_list_set_markup_column),
      	(egg_icon_list_get_markup_column),
      	(egg_icon_list_set_pixbuf_column),
      	(egg_icon_list_get_pixbuf_column), (egg_icon_list_select_path),
      	(egg_icon_list_unselect_path), (egg_icon_list_select_all),
      	(egg_icon_list_unselect_all), (egg_icon_list_path_is_selected),
      	(egg_icon_list_item_activated):
      	* libegg/iconlist/eggiconlist.h:
      	* libegg/iconlist/testiconlist.c: (foreach_selected_remove_func),
      	(foreach_selected_remove), (selection_changed), (main):
      	Document functions and fix a few bugs.
      da6fe168
    • Matthias Clasen's avatar
      Reset current_width and current_height to 0 when ending the embedding. · c10dd018
      Matthias Clasen authored
      Sat Jul  3 02:09:51 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtksocket.c (gtk_socket_end_embedding): Reset current_width
      	and current_height to 0 when ending the embedding.  (#143675,
      	Nickolay V. Shmyrev)
      c10dd018
    • Matthias Clasen's avatar
      Let the cursor move to the right end of the entry text, even if it ends in · b045a451
      Matthias Clasen authored
      Sat Jul  3 01:48:19 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkentry.c (gtk_entry_move_visually): Let the cursor move
      	to the right end of the entry text, even if it ends in combining
      	marks.  (#141728, Theppitak Karoonboonyanan)
      b045a451
    • Matthias Clasen's avatar
      Unset the displayed row when unsetting the model. (#138560, Christian · 6a9e6733
      Matthias Clasen authored
      Fri Jul  2 23:34:33 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcombobox.c (gtk_combo_box_unset_model): Unset the displayed
      	row when unsetting the model.  (#138560, Christian Persch)
      6a9e6733
    • Matthias Clasen's avatar
      Properly align mask and pixbuf if a subarea is exposed. (#135423, fix by · 1b7efe47
      Matthias Clasen authored
      Fri Jul  2 22:41:27 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkimage.c (gtk_image_expose): Properly align mask and
      	pixbuf if a subarea is exposed.  (#135423, fix by John Ehresman)
      1b7efe47
    • Matthias Clasen's avatar
      Add scroll events to the event mask, set a scroll_event handler. Handle · dd925329
      Matthias Clasen authored
      Fri Jul  2 21:40:21 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtknotebook.c (gtk_notebook_realize): Add scroll events
      	to the event mask, set a scroll_event handler.
      	* gtk/gtknotebook.c (gtk_notebook_scroll): Handle scroll events
      	by switching tabs.  (#145244, Gabriel de Perthuis)
      dd925329
  7. 02 Jul, 2004 3 commits
    • Anders Carlsson's avatar
      Add markup column support. · b107b507
      Anders Carlsson authored
      2004-07-02  Anders Carlsson  <andersca@gnome.org>
      
      	* libegg/iconlist/eggiconlist.c: (egg_icon_list_class_init),
      	(egg_icon_list_init), (egg_icon_list_set_property),
      	(egg_icon_list_get_property), (egg_icon_list_calculate_item_size),
      	(egg_icon_list_paint_item), (egg_icon_list_update_item_text),
      	(egg_icon_list_get_text_column), (egg_icon_list_set_markup_column),
      	(egg_icon_list_get_markup_column),
      	(egg_icon_list_set_pixbuf_column),
      	(egg_icon_list_get_pixbuf_column):
      	* libegg/iconlist/eggiconlist.h:
      	* libegg/iconlist/testiconlist.c: (fill_model), (create_model):
      	Add markup column support.
      b107b507
    • Anders Carlsson's avatar
      Update icon list to use the tree model instead. · 5a79a611
      Anders Carlsson authored
      2004-07-02  Anders Carlsson  <andersca@gnome.org>
      
      	* libegg/iconlist/eggiconlist.c: (egg_icon_list_class_init),
      	(egg_icon_list_init), (egg_icon_list_destroy),
      	(egg_icon_list_finalize), (egg_icon_list_set_property),
      	(egg_icon_list_get_property), (egg_icon_list_button_press),
      	(egg_icon_list_select_first_matching_item),
      	(egg_icon_list_maybe_begin_dragging_items),
      	(egg_icon_list_real_toggle_cursor_item),
      	(egg_icon_list_calculate_item_size),
      	(egg_icon_list_invalidate_sizes), (egg_icon_list_paint_item),
      	(egg_icon_list_item_new), (egg_icon_list_item_unref),
      	(egg_icon_list_get_item_text), (egg_icon_list_get_item_icon),
      	(egg_icon_list_get_item_at_pos), (egg_icon_list_get_path_at_pos),
      	(egg_icon_list_selected_foreach), (egg_icon_list_select_path),
      	(egg_icon_list_unselect_path), (egg_icon_list_path_is_selected),
      	(egg_icon_list_item_activated), (egg_icon_list_get_items),
      	(egg_icon_list_row_changed), (egg_icon_list_row_inserted),
      	(egg_icon_list_row_deleted), (egg_icon_list_rows_reordered),
      	(egg_icon_list_build_items), (egg_icon_list_set_model),
      	(egg_icon_list_get_model), (egg_icon_list_set_text_column),
      	(egg_icon_list_set_pixbuf_column):
      	* libegg/iconlist/eggiconlist.h:
      	* libegg/iconlist/testiconlist.c: (fill_model), (create_model),
      	(foreach_selected_print), (item_removed), (remove_selected),
      	(item_cb), (do_popup_menu), (main):
      	* libegg/util/eggmarshalers.list:
      	Update icon list to use the tree model instead.
      5a79a611
    • Anders Carlsson's avatar
      Make sure we check for a NULL model first. · ee15a7b9
      Anders Carlsson authored
      2004-07-02  Anders Carlsson  <andersca@gnome.org>
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_model):
      	Make sure we check for a NULL model first.
      ee15a7b9
  8. 30 Jun, 2004 1 commit
  9. 27 Jun, 2004 1 commit
  10. 26 Jun, 2004 5 commits
    • Soeren Sandmann's avatar
      Make sure the rubberband is updated when scrolling. · f0ef8663
      Soeren Sandmann authored
       Sat Jun 26 21:05:15 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* libegg/iconlist/eggiconlist.c (egg_icon_list_adjustment_changed):
      	Make sure the rubberband is updated when scrolling.
      f0ef8663
    • Soeren Sandmann's avatar
      small color tweak. (#141173) · f7c67de9
      Soeren Sandmann authored
      Sat Jun 26 15:07:25 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkstyle.c, gtk/gtkrc.c: small color tweak. (#141173)
      f7c67de9
    • Matthias Clasen's avatar
      Prevent unwanted recursion by resetting icon_set->cache before freeing the · 0f9a4da8
      Matthias Clasen authored
      Sat Jun 26 01:04:31 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkiconfactory.c (clear_cache): Prevent unwanted
      	recursion by resetting icon_set->cache before freeing
      	the cache.  (#144947, Tim Janik)
      0f9a4da8
    • Matthias Clasen's avatar
      Accept a NULL style. · 95774391
      Matthias Clasen authored
      Sat Jun 26 00:40:02 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkiconfactory.c (render_icon_name_pixbuf):
      	* gtk/gtkiconfactory.c (gtk_icon_set_render_icon):
      	* gtk/gtkstyle.c (gtk_default_render_icon): Accept a NULL
      	style.
      95774391
    • Matthias Clasen's avatar
      Reflect the last change in the docs. · e1a24313
      Matthias Clasen authored
      Sat Jun 26 00:04:36 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkentrycompletion.c (gtk_entry_completion_set_model):
      	* gtk/gtkcombobox.c (gtk_combo_box_set_model): Reflect the
      	last change in the docs.
      e1a24313