1. 12 Jul, 2004 4 commits
    • Matthias Clasen's avatar
      Warning fixes. · d11ab53e
      Matthias Clasen authored
      d11ab53e
    • Matthias Clasen's avatar
      Include the update_counter check in the HAVE_XSYNC condition, since · 027bbe0f
      Matthias Clasen authored
      Mon Jul 12 01:56:26 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_toplevel_x11_free_contents):
      	Include the update_counter check in the HAVE_XSYNC condition,
      	since update_counter isn't present in the !HAVE_XSYNC case.
      027bbe0f
    • Matthias Clasen's avatar
      Add new stock items. · c276d35f
      Matthias Clasen authored
      Mon Jul 12 00:57:32 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/tmpl/gtkstock.sgml:
      	* gtk/Makefile.am (HTML_IMAGES):
      	* gtk/gtk-sections.txt: Add new stock items.
      c276d35f
    • Matthias Clasen's avatar
      Add a number of new stock items. (#102530, #68015, #109811, Jordi Mallach, · 6c18d56a
      Matthias Clasen authored
      Mon Jul 12 00:52:04 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/stock-icons/Makefile.am:
      	* gtk/stock-icons/stock_about_{16,24}.png:
      	* gtk/stock-icons/stock_connect_{16,24}.png:
      	* gtk/stock-icons/stock_disconnect_{16,24}.png:
      	* gtk/stock-icons/stock_edit_{16,24}.png:
      	* gtk/stock-icons/stock_media_forward_{16,24}.png:
      	* gtk/stock-icons/stock_media_next_{16,24}.png:
      	* gtk/stock-icons/stock_media_pause_{16,24}.png:
      	* gtk/stock-icons/stock_media_play_{16,24}.png:
      	* gtk/stock-icons/stock_media_previous_{16,24}.png:
      	* gtk/stock-icons/stock_media_record_{16,24}.png:
      	* gtk/stock-icons/stock_media_rewind_{16,24}.png:
      	* gtk/stock-icons/stock_media_stop_{16,24}.png:
      	* gtk/gtkstock.h (GTK_STOCK_ABOUT):
      	* gtk/gtkstock.h (GTK_STOCK_CONNECT):
      	* gtk/gtkstock.h (GTK_STOCK_DISCONNECT):
      	* gtk/gtkstock.h (GTK_STOCK_EDIT):
      	* gtk/gtkstock.h (GTK_STOCK_MEDIA_FORWARD):
      	* gtk/gtkstock.h (GTK_STOCK_MEDIA_NEXT):
      	* gtk/gtkstock.h (GTK_STOCK_MEDIA_PAUSE):
      	* gtk/gtkstock.h (GTK_STOCK_MEDIA_PLAY):
      	* gtk/gtkstock.h (GTK_STOCK_MEDIA_PREVIOUS):
      	* gtk/gtkstock.h (GTK_STOCK_MEDIA_RECORD):
      	* gtk/gtkstock.h (GTK_STOCK_MEDIA_REWIND):
      	* gtk/gtkstock.h (GTK_STOCK_MEDIA_STOP):
      	* gtk/gtkiconfactory.c (get_default_icons):
      	* gtk/gtkstock.c (builtin_items): Add a number of new stock
      	items.  (#102530, #68015, #109811, Jordi Mallach, Benjamin Otte,
      	Michael Opdenacker)
      6c18d56a
  2. 11 Jul, 2004 3 commits
    • Soeren Sandmann's avatar
      Bug 143330, support update counter spec. · 1a5e92dd
      Soeren Sandmann authored
      Sun Jul 11 15:24:03 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	Bug 143330, support update counter spec.
      
      	* configure.in: Add check for the Sync extension
      
      	* gdk/gdkwindow.h: gdk_window_enable_synchronized_configure() and
      	gdk_window_configure_finished()
      
      	* gtk/gtkwindow.c (gtk_window_move_resize): Call gdk_window_finish_configure().
      	* gtk/gtkwindow.c (gtk_window_realize): Automatically enable
      	synchronized configures.
      
      	* gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store current
      	and pending counter values.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): New function.
      	* gdk/x11/gdkwindow-x11.c
      	(gdk_window_enable_synchronized_configure): New function.
      	* gdk/x11/gdkwindow-x11.c (gdk_toplevel_x11_free_contents):
      	Delete update counter.
      	* gdk/x11/gdkwindow-x11.c (set_wm_protocols): Advertise
      	_NET_WM_SYNC_REQUEST when Sync is available
      
      	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Handle
      	_NET_WM_SYNC_REQUEST messages
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Save counter
      	value for use by gdk_window_configure_finished() when receiving
      	ConfigureNotifies.
      
      	* gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add use_sync flag
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Check if the XSync
      	extension is available
      	* gdk/x11/gdkdisplay-x11.c: Add _NET_WM_SYNC_REQUEST and
      	_NET_WM_SYNC_REQUEST_COUNTER to list of supported atoms.
      
      	* gdk/linux-fb/gdkwindow-fb.c, gdk/win32/gdkwindow-win32.c: Add
      	stubs for enable_synchronized_configure() and configure_finished()
      1a5e92dd
    • Matthias Clasen's avatar
      Make middle-button pasting work as expected inside the entry. (#116789, · b1a704b6
      Matthias Clasen authored
      Sat Jul 10 23:35:13 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkentry.c (paste_received): Make middle-button pasting
      	work as expected inside the entry.  (#116789, Scott Bronson)
      b1a704b6
    • Matthias Clasen's avatar
      Update clipboards. (#142805, Mikael Hallendal) · 37b90cc7
      Matthias Clasen authored
      Sat Jul 10 22:13:53 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_select_range): Update
      	clipboards.  (#142805, Mikael Hallendal)
      37b90cc7
  3. 10 Jul, 2004 4 commits
  4. 09 Jul, 2004 14 commits
    • Soeren Sandmann's avatar
      Insert checks for root window. The root window is never mapped. · 1c5a1dda
      Soeren Sandmann authored
      Sat Jul 10 01:55:29 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_{re|un}set_bg):
      	Insert checks for root window. The root window is never mapped.
      1c5a1dda
    • Soeren Sandmann's avatar
      Fix a warning Actually unset bg. · d7da887e
      Soeren Sandmann authored
      Sat Jul 10 01:06:05 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gdk/x11/gdkwindow-x11.c (post_unmap): Fix a warning
      	* gdk/x11/gdkwindow-x11.c (show_window_internal): Actually unset
      	bg.
      d7da887e
    • Soeren Sandmann's avatar
      Bug 113310. · 69ab514a
      Soeren Sandmann authored
      Sat Jul 10 00:37:45 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	Bug 113310.
      
      	* gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_{un|re}set_bg):
      	New functions that can do a recursive unset/reset bg.
      
      	* gdk/x11/gdkgeometry-x11.c: Remove
      	gdk_window_tmp_{un|re}set_bg().
      
      	* gdk/x11/gdkwindow-x11.c (pre_unmap, post_unmap): New functions
      	called before and after unmapping a window. They unset the
      	background of all other windows to prevent flicker from the X
      	server repainting the background. post_unmap() also invalidates
      	the parent of the unmapped window to draw it without roundtrips.
      
      	* gdk/x11/gdkwindow-x11.c (show_window_internal): Unset
      	background of newly mapped windows and all desendants to prevent
      	flicker.
      69ab514a
    • Manish Singh's avatar
      have a dummy case GDK_OWNER_CHANGE in switch statements to avoid gcc · b22258e6
      Manish Singh authored
      Fri Jul  9 15:33:55 2004  Manish Singh  <yosh@gimp.org>
      
              * gdk/gdkevents.c: have a dummy case GDK_OWNER_CHANGE in switch
              statements to avoid gcc warnings about not all enum values handled.
      
              * gdk/x11/gdkdisplay-x11.c (gdk_display_open): ignore should live in
              #ifdef HAVE_XFIXES.
      b22258e6
    • Manish Singh's avatar
      function doesn't return a value, so don't use g_return_val_if_fail() · 2633a030
      Manish Singh authored
      Fri Jul  9 15:38:06 2004  Manish Singh  <yosh@gimp.org>
      
              * gdk-pixbuf-io.c (gdk_pixbuf_format_set_disabled): function doesn't
              return a value, so don't use g_return_val_if_fail()
      
              * gdk-pixbuf-scale.c (gdk_pixbuf_rotate_simple): initialize dest in
              the can't happen case, to quiet gcc.
      
              * io-tiff.c (tifflibversion): enclose in #if TIFFLIB_VERSION >=
              20031226.
      2633a030
    • Soeren Sandmann's avatar
      Add an "override_redirect" bit. · 8889f2b4
      Soeren Sandmann authored
      Fri Jul  9 23:26:09 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gdk/x11/gdkwindow-x11.h (struct _GdkWindowImplX11): Add an
      	"override_redirect" bit.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_new): Set it here.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_move, gdk_window_resize,
      	gdk_window_move_resize):
      	Update the local size/position cache
      	immediately for override redirect windows.
      
      	* gdk/x11/gdkwindow-x11.c (show_window_internal): Invalidate
      	newly mapped child and override redirect windows.
      8889f2b4
    • Federico Mena Quintero's avatar
      Fixes #137031: · 42067dfb
      Federico Mena Quintero authored
      2004-07-09  Federico Mena Quintero  <federico@ximian.com>
      
      	Fixes #137031:
      
      	* gtk/gtkfilesystemunix.c (get_fallback_icon): New helper
      	function, fetches a stock icon as a fallback.
      	(gtk_file_system_unix_volume_render_icon): Fall back to a stock
      	icon.
      	(gtk_file_system_unix_render_icon): Fall back to a stock icon.
      	Use helper functions rather than being a mega-function.
      	(get_icon_name_for_directory): Renamed from
      	get_icon_for_directory().
      	(get_icon_type_from_path): New helper function; code pulled out
      	from gtk_file_system_unix_render_icon().
      	(get_special_icon): Likewise.
      	(get_icon_for_mime_type): Likewise.
      42067dfb
    • cinamod's avatar
      change icon sizes, toolbar sizes · 6a2313e0
      cinamod authored
      6a2313e0
    • Matthias Clasen's avatar
      Use the requisition of the widget instead of relying on the style drawing · f4ed8b2e
      Matthias Clasen authored
      2004-07-09  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the
      	requisition of the widget instead of relying on the style
      	drawing function to supply the size of the drawable.  (#146531)
      f4ed8b2e
    • Federico Mena Quintero's avatar
      Fix typo; tmp_event -> temp_event. · 097eddf3
      Federico Mena Quintero authored
      2004-07-09  Federico Mena Quintero  <federico@ximian.com>
      
      	* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
      	temp_event.
      097eddf3
    • Matthias Clasen's avatar
      Make GtkEntry work harder to protect passwords: (#143955, Morten Welinder) · ca99bb0d
      Matthias Clasen authored
      2004-07-09  Matthias Clasen  <mclasen@redhat.com>
      
       	Make GtkEntry work harder to protect passwords:  (#143955,
      	Morten Welinder)
      
      	* gtk/gtkentry.c (gtk_entry_destroy): Add a destroy handler
      	to clear the password even if the widget is leaked.
      
      	* gtk/gtkentry.c (gtk_entry_real_delete_text):
      	* gtk/gtkentry.c (gtk_entry_finalize): Zero out the memory
      	before freeing it.
      
      	* gtk/gtkentry.c (gtk_entry_real_insert_text): Zero and free
      	the old memory instead of just reallocating it.
      
      	* gtk/gtkentry.c (gtk_entry_create_layout): Don't leak text
      	direction information for passwords.
      ca99bb0d
    • Matthias Clasen's avatar
      Fix some cases where style functions were not handling widget == NULL · ee63b081
      Matthias Clasen authored
      2004-07-09  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkstyle.c: Fix some cases where style functions were
      	not handling widget == NULL properly.  (#146282)
      ee63b081
    • Matthias Clasen's avatar
      Improve the EXPANDER_MAX warning. · 0e0a2bc0
      Matthias Clasen authored
      Thu Jul  8 22:38:58 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktreeview.c: Improve the EXPANDER_MAX warning.
      0e0a2bc0
    • Federico Mena Quintero's avatar
      Fix #139290: · b3fbcef8
      Federico Mena Quintero authored
      2004-07-08  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix #139290:
      
      	* gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Add a
      	GError argument.  Do check for errors when getting the
      	GtkFileFolder:  get the folder and read the children before
      	actually creating the model.  Removed obsolete code that handled
      	roots-changed on the file system.
      	(file_model_node_get_info): Assert that we don't reach the old
      	case to display file system roots.
      	(roots_changed_callback): Removed.
      
      	* gtk/gtkfilechooserdefault.c (set_list_model): Add a GError
      	argument, and a boolean return value.  Return an error if we
      	cannot create the file system model.  On error, set a NULL model
      	on the tree.
      	(gtk_file_chooser_default_set_current_folder): Use the error value
      	from set_list_model().
      	(gtk_file_chooser_default_set_property): Set the show_hidden
      	property only if the browse_files_model exists.
      	(gtk_file_chooser_default_unselect_path): Only operate if the
      	browse_files_model exists.
      	(check_preview_change): Check whether we have the sort_model.
      	(change_folder_and_display_error): Copy the path we get passed
      	before using it.  There's a comment in there that explains why we
      	need to copy it; basically, if the passed path belongs to the
      	model, the model may go away in the middle of this function and
      	we'll be left with a dangling pointer.
      	(install_list_model_filter): Assert that the model is not NULL.
      	(set_current_filter): Check whether the model exists.
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Don't
      	g_return_if_fail if the model is NULL.
      	(gtk_tree_selection_get_selected_rows): Likewise.
      	(gtk_tree_selection_count_selected_rows): Likewise.
      	(gtk_tree_selection_selected_foreach): Likewise.
      	(gtk_tree_selection_path_is_selected): Likewise; rather just
      	return FALSE.
      	(gtk_tree_selection_select_all): Likewise.
      	(gtk_tree_selection_unselect_all): Likewise.
      	(gtk_tree_selection_select_range): Do g_return_if_fail() if the
      	model is NULL.
      	(gtk_tree_selection_unselect_range): Likewise.
      
      	* gtk/gtkfilesystemunix.c (fill_in_names): Return immediately if
      	g_dir_open() fails:  there is no need to set the error ourselves,
      	as g_dir_open() already does it.
      b3fbcef8
  5. 08 Jul, 2004 7 commits
  6. 07 Jul, 2004 8 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
      Misc additions. · ee31ef4e
      Matthias Clasen authored
      2004-07-07  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/tmpl/*: Misc additions.
      
      	* gtk/gtk-sections.txt: Updates.
      
      	* gtk/tmpl/gtkcellrendererprogress.sgml: New file.
      
      	* gtk/gtk-docs.sgml: Add GtkCellRendererProgress.
      
      	* gtk/Makefile.am (HTML_IMAGES): Add file and directory icons.
      ee31ef4e
    • 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
      Fix the build. · 8a037e22
      Matthias Clasen authored
      8a037e22
    • 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