1. 07 Jul, 2004 4 commits
    • 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
    • Matthias Clasen's avatar
      Fix a 64bit alignment issue. (#144302, Sunil) · a346f4a8
      Matthias Clasen authored
      Tue Jul  6 22:58:00 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time): Fix
      	a 64bit alignment issue.  (#144302, Sunil)
      a346f4a8
    • Tor Lillqvist's avatar
      gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text) · d8b2f46c
      Tor Lillqvist authored
      2004-07-07  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text)
      	* gdk/win32/gdkfont-win32.c (gdk_text_extents)
      	* gdk/win32/gdkproperty-win32.c (find_common_locale,
      	gdk_property_change)
      	* gdk/win32/gdkselection-win32.c (gdk_selection_convert): Use
      	g_utf8_to_utf16() instead of the removed _gdk_utf8_to_ucs2() (see
      	below).
      
      	* gdk/win32/gdkglobals-win32.c
      	* gdk/win32/gdkmain-win32.c (_gdk_windowing_init)
      	* gdk/win3/gdkprivate-win32.h: Add a variable for the TARGETS
      	atom. Initialize it. Declare it. Drop the variable for the
      	COMPOUND_TEXT atom.
      
      	* gdk/win32/gdkim-win32.c (gdk_wcstombs): Don't return UTF-8. This
      	function is supposed to return the string in the locale's charset
      	and encoding. Use g_convert().
      
      	(gdk_mbstowcs): Similarily, don't take an UTF-8 string, but a
      	string in the locale's charset. Use g_convert().
      
      	(_gdk_ucs2_to_utf8, _gdk_utf8_to_wcs, _gdk_utf8_to_ucs2):
      	Delete. The UCS-2 functions didn't handle surrogates anyway. Use
      	GLib's UTF-16 functions instead. Windows uses UTF-16.
      
      	* gdk/win32/gdkprivate-win32.h: Remove declarations of the deleted
      	functions mentioned above.
      
      	* gdk/win32/gdkproperty-win32.c (gdk_property_change): Use CF_TEXT
      	also if the string is of type STRING, i.e. ISO-8859-1, and the
      	current codepage is 1252, and contains no C1 chars. Accept
      	also UTF8_STRING.
      
      	* gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
      	Mark as static. When storing STRING data, convert to
      	Latin-1. (#140537)
      	(gdk_selection_owner_set_for_display): Now that STRING is always
      	ISO-8859-1, use UTF8_STRING when sending the selection request
      	to ourselves.
      
      	(gdk_selection_convert): Handle also UTF8_STRING. (#140537, John
      	Ehresman)
      
      	(gdk_text_property_to_text_list_for_display): Make work more like
      	X11 version. Do obey the encoding parameter.
      
      	(gdk_string_to_compound_text_for_display,
      	gdk_utf8_to_compound_text_for_display): Don't even pretend
      	supporting COMPOUND_TEXT.
      
      	(gdk_utf8_to_string_target): Convert to ISO-8859-1, like on X11.
      
      	(sanitize_utf8): Zero-terminate string.
      d8b2f46c
  2. 06 Jul, 2004 8 commits
    • Tor Lillqvist's avatar
      Also gdk-pixbuf.c was changed. · d1c69ab8
      Tor Lillqvist authored
      d1c69ab8
    • Tor Lillqvist's avatar
      Mark the version variables for proper import and export from Windows DLLs. · c65574cf
      Tor Lillqvist authored
      2004-07-06  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk-pixbuf-features.h.in: Mark the version variables for proper
      	import and export from Windows DLLs. Thanks to Laurent Sansonetti
      	for reporting the problem.
      c65574cf
    • 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
  3. 05 Jul, 2004 3 commits
  4. 04 Jul, 2004 10 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
    • Matthias Clasen's avatar
      Actually integrate iconview docs. · 89570b5a
      Matthias Clasen authored
      89570b5a
    • Anders Carlsson's avatar
      Fix a small issue · 4e20d3bc
      Anders Carlsson authored
      4e20d3bc
    • Anders Carlsson's avatar
      Add GtkIconView to the documentation. · c1d9b74a
      Anders Carlsson authored
      2004-07-04  Anders Carlsson  <andersca@gnome.org>
      
      	* gtk/gtk-docs.sgml:
      	* gtk/gtk-sections.txt:
      	* gtk/gtk.types:
      	Add GtkIconView to the documentation.
      c1d9b74a
    • 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
  5. 03 Jul, 2004 9 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
      Correct the math to calculate bilinear weights. (#112412, Brian Cameron) · f8e1ed82
      Matthias Clasen authored
      Sat Jul  3 00:41:44 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* pixops/pixops.c (bilinear_box_make_weights): Correct the
      	math to calculate bilinear weights. (#112412, Brian Cameron)
      f8e1ed82
    • 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
  6. 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
  7. 01 Jul, 2004 3 commits