1. 05 Jul, 2003 3 commits
    • Owen Taylor's avatar
      Split toplevel-specific pieces of GdkWindowImplX11 into a separate · 86250658
      Owen Taylor authored
      Fri Jul  4 22:26:27 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
              toplevel-specific pieces of GdkWindowImplX11 into
              a separate GdkToplevelX11 structure.
      86250658
    • Owen Taylor's avatar
      Fix some leftover fields. · bce0622b
      Owen Taylor authored
      Fri Jul  4 22:05:09 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
              some leftover fields.
      bce0622b
    • Owen Taylor's avatar
      Use asynchronously _gdk_x11_set_input_focus_safe to avoid having to trap · 9bedbf66
      Owen Taylor authored
      Fri Jul  4 15:57:52 2003  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
      	Use asynchronously _gdk_x11_set_input_focus_safe
      	to avoid having to trap errors and XSync().
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
      	_gdk_x11_set_input_focus_safe() here as well.
      
      	* gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
      	Rework handling of property notifies on _NET_WM_STATE
      	so that we ignore _NET_WM_DESKTOP notifies unless we
      	really care.
      
      	* gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
      	XShmQueryExtension() rather than XQueryExtension() to
      	avoid extra rountrip.
      
      	* gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
      	Remove unused call to XGetWindowAttributes()
      
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
      	unused call to XGetKeyboardControl().
      
      	* gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
      	Add (#99571)
      
      	* gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c
      	No-op implementations of gdk_display_flush().
      
      	* gdk/gdkwindow.c (gdk_window_process_all_updates): Use
      	gdk_display_flush() rather than gdk_flush() to avoid
      	XSync().
      
      	* gdk/x11/gdkwindow-x11.c (update_wm_hints)
      	gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
      	so that we don't have to get the property back from the server.
      
      	* gdk/x11/gdkwindow-x11.c (show_window_internal): Store
      	the serial of when we map a toplevel to allow optimizing
      	out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
      	XTranslateCoordinates() for override-redirect windows.
      
      Fri Jul  4 15:59:27 2003  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
      	about setting window group after the window is mapped from docs
      	- nothing the ICCCM forbids that.
      
      	* gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
      	Fix g_return_val_if_fail() in void return function.
      
      	* configure.in: Fix misplaced comma that was resulting
      	in XShm always being disabled.
      9bedbf66
  2. 04 Jul, 2003 3 commits
    • Soeren Sandmann's avatar
      remove this accidentally committed file. · eaab3748
      Soeren Sandmann authored
      Fri Jul  4 19:55:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* tests/stresstest-toolbar: remove this accidentally committed
      	file.
      
      	* tests/stresstest-toolbar.c: really add this new test
      eaab3748
    • Soeren Sandmann's avatar
      new test for removing items · f91ae4ed
      Soeren Sandmann authored
      Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* tests/stresstest-toolbar.c: new test for removing items
      
      	* tests/testtoolbar.c: add a popup menu
      
      	* gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
      	  assert widget->parent == container when the container is a
      	  toolbar.
      
      	* gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
      	simpler. Also make correct.
      
      	* gtk/gtktoolbar.c (gtk_toolbar_button_press): make
      	popup_context_menu a boolean handled signal.
      f91ae4ed
    • Tor Lillqvist's avatar
      We can calculate the width and height of the bounding rectangle only after · aac21b6f
      Tor Lillqvist authored
      2003-07-04  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
      	gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
      	the width and height of the bounding rectangle only after the
      	minumum x and y have been found, and need a separate loop for
      	it. Thanks to Bruce Hochstetler for providing a sample program
      	exhibiting the bug.
      aac21b6f
  3. 03 Jul, 2003 5 commits
    • Matthias Clasen's avatar
      Support saving ICOs and CURs. · 44f044e6
      Matthias Clasen authored
      44f044e6
    • Tor Lillqvist's avatar
      Add gdk_string_to_compound_text_for_display. (#116537, Peter Zelezny) · 7b08cb17
      Tor Lillqvist authored
      2003-07-03  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
      	(#116537, Peter Zelezny)
      7b08cb17
    • Owen Taylor's avatar
      Add a test program from gnome-desktop. · f728c3d2
      Owen Taylor authored
              * tests/Makefile.am test/testicontheme.c: Add a test
              program from gnome-desktop.
      f728c3d2
    • Ross Burton's avatar
      Use the theme colours for rubber banding · 8f5c1b6a
      Ross Burton authored
      8f5c1b6a
    • Soeren Sandmann's avatar
      Insert cast to fix warning. Assign something to old_value to quiet gcc · 1f894276
      Soeren Sandmann authored
      Thu Jul  3 03:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
      	fix warning. Assign something to old_value to quiet gcc
      
      	* gtk/gtkcalendar.c
      	(start_spinning): gtk_timeout_add->g_timeout_add
      
      	* gtk/gtkicontheme.c
      	(theme_lookup_icon): Make it compile (remove double semicolon)
      
      	* gtk/gtktoolbutton.c
      	(gtk_tool_button_class_init): Long comment about properties.
      	(gtk_tool_button_class_init): Improve text for "use_underline"
      	property
      	(gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
      	on whether the passed-in label has use_mnemonic set
      	(gtk_tool_button_create_menu_proxy): Split image cloning out in
      	new function. Make that function also handle image with pixbuf
      	storage.
      	(gtk_tool_button_construct_contents): Use gtk_widget_destroy()
      	instead of gtk_container_remove().
      	(gtk_tool_button_construct_contents): Fix eliding bug
      
      	* gtk/gtktoolbar.c
      	(gtk_toolbar_finalize): New function. Unref tooltips, pointed out
      	by Morten Welinder
      	(gtk_toolbar_button_press): Make popup_context_menu signal provide
      	coordinates and button number
      
      	* tests/testtoolbar.c (main): Add new pixbuf toolbutton
      
      	* tests/apple-red.png: new file
      1f894276
  4. 02 Jul, 2003 5 commits
    • Owen Taylor's avatar
      Document named icon system. · 9e3f0c6f
      Owen Taylor authored
      Wed Jul  2 18:15:21 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/Makefile.am gtk/gtk-docs.sgml gtk/gtksections.txt
              gtk/tmpl/gtkicontheme.sgml: Document named icon system.
      
              * gtk/tmpl/gtkrc.sgml: Mention specifying named icons
              as @"icon-name".
      
              * gtk/tmpl/gtkimage.sgml: Add a cross-reference to stock
              icons.
      9e3f0c6f
    • Owen Taylor's avatar
      add gtkicontheme.c · 9adac9b2
      Owen Taylor authored
      Wed Jul  2 18:00:32 2003  Owen Taylor  <otaylor@redhat.com>
      
              * POTFILES.in: add gtkicontheme.c
      9adac9b2
    • Owen Taylor's avatar
      Implement a loader for named themed icon based on from gnome-desktop · a72aed4e
      Owen Taylor authored
      Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkicontheme.[ch]: Implement a loader for
              named themed icon based on from gnome-desktop library
              by Alex Larsson.
      
              * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
              from gnome-desktop.
      
              * gtk/gtkiconfactory.[ch]: Add
              gtk_icon_source_set/get_icon_name() to allow stock icons
              to be based off of named theme icons.
      
              * gtk/gtkiconfactory.c: Rework sources so that the source
              is *either* a pixbuf, or a filename, or an icon name,
              instead of the pixbuf/filename mix it was before. Put a
              workaround for get_pixbuf() so that it can return the
              filename pixbuf, e.g, for render_icon().
      
              * gtk/gtkiconfactory.c: Make the default setup use
              themed icons, and add builtin icons to the default
              icon theme for all the standard pixbufs, so we
              don't rely on actually having an icon theme on disk.
      
              * gtk/gtkrc.c: Add support for @"icon-name" to specify
              a themed icon for a stock icon source.
      
              * tests/Makefile.am test/testicontheme.c: Add a test
              program from gnome-desktop.
      
              * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
              Net/IconThemeName / gtk-icon-theme-name setting.
      
              * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
              update the icon cache serial so we don't continually
      
              * gtk/gtkwidget.c: Fix a couple of references in doc comments
              to ::direction_set that should have been to ::direction-changed
      a72aed4e
    • Owen Taylor's avatar
      Attach the style to the widget. · 8982aa67
      Owen Taylor authored
      Wed Jul  2 14:45:41 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
              style to the widget.
      8982aa67
    • Soeren Sandmann's avatar
      Add new toolbar headers · 26698473
      Soeren Sandmann authored
      Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtk.h: Add new toolbar headers
      
      	* tests/testtoolbar.c: new file
      
      	* tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
      
      	* gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
      
      Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktoolbar.c:
      	(gtk_toolbar_remove_tool_item): Fix bug where list is changed
      	inside a for loop (pointed out by Morten Welinder).
      	(gtk_toolbar_focus_home_or_end): Minor formatting change
      
      	Comments from Owen:
      
      	* gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
      	gtk_toolbar_elide_underscores instead.
      
      	* gtk/gtktoolbar.c: rename signal from focus_ends to
      	focus_home_or_end.
      	(_gtk_toolbar_elide_underscores): export this as an internal
      	function.
      	(gtk_toolbar_move_focus): add comment explaining difference to
      	gtk_toolbar_focus();
      	(gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
      	TAB_BACKWARD focus the right widgets in RTL mode
      
      	* gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
      	"label" and "icon" parameters
      
      	* gtk/gtktoolbutton.[ch]: remove icon_set property.
      26698473
  5. 01 Jul, 2003 6 commits
  6. 30 Jun, 2003 6 commits
    • Matthias Clasen's avatar
      Add gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(), · 7de2603d
      Matthias Clasen authored
      2003-07-01  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk/gdk-sections.txt: Add
      	gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(),
      	gdk_display_supports_cursor_color(), gdk_display_get_default_cursor_size() and
      	gdk_display_get_maximal_cursor_size().
      7de2603d
    • Matthias Clasen's avatar
      Check for Xcursor. · eb7135ad
      Matthias Clasen authored
      2003-07-01  Matthias Clasen  <maclas@gmx.de>
      
      	* configure.in: Check for Xcursor.
      
      	* gdk/x11/gdkcursor-x11.c:
      	* gdk/gdkdisplay.h:
      	* gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
      	gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(),
      	gdk_display_supports_cursor_color(), gdk_display_get_default_cursor_size() and
      	gdk_display_get_maximal_cursor_size().  (#69436)
      eb7135ad
    • Tor Lillqvist's avatar
      New function, callback proc for EnumWindows(). · 33902a67
      Tor Lillqvist authored
      2003-06-30  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
      	callback proc for EnumWindows().
      	(gdk_drag_find_window_for_screen): Actually take the drag_window
      	argument into account: Instead of using WindowFromPoint(), use
      	EnumWindows(), to be able to skip the drag_window. (#116320, Tony
      	M Brown, Herman Bloggs)
      
      	* gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
      	gdk_window_ref()/unref() calls with g_object_ref()/unref().
      	Consistently use %p format in debugging output of pointers and
      	HANDLEs.
      33902a67
    • Mark McLoughlin's avatar
      kill some stray characters breaking the build. · c921fdf5
      Mark McLoughlin authored
      2003-06-30  Mark McLoughlin  <mark@skynet.ie>
      
              * gtk/gtkexpander.h: kill some stray characters
              breaking the build.
      c921fdf5
    • Mark McLoughlin's avatar
      Add GtkExpander. See discussion in bug #60553. · 281a9554
      Mark McLoughlin authored
      2003-06-30  Mark McLoughlin  <mark@skynet.ie>
      
              Add GtkExpander. See discussion in bug #60553.
      
              * gtk/gtkexpander.[ch]: add.
      
              * gtk/Makefile.am: build gtk-expander.[ch].
      
              * docs/widget_geometry.txt: add info on the layout
              of GtkExpander.
      281a9554
    • Mohammad DAMT's avatar
      Updated Indonesian translation · 453bf966
      Mohammad DAMT authored
      2003-06-30  Mohammad DAMT  <mdamt@bisnisweb.com>
      
      	* id.po: Updated Indonesian translation
      453bf966
  7. 29 Jun, 2003 5 commits
  8. 28 Jun, 2003 2 commits
    • Matthias Clasen's avatar
      Stop discriminating against 32bpp ICOs a): Use the byte size of the image · 4d3c0179
      Matthias Clasen authored
      2003-06-28  Matthias Clasen  <maclas@gmx.de>
      
      	* io-ico.c (DecodeHeader): Stop discriminating against 32bpp ICOs a): Use the byte
      	size of the image as a heuristic when selecting the bitmap  to load - this lets us
      	select 32bpp bitmaps which come after a 8bpp bitmap.
      	(OneLineTransp): Stop discriminating against 32bpp ICOs b): Don't overwrite the
      	alpha channel of 32bpp ICOs.
      	(gdk_pixbuf__ico_image_load_increment): Stop decoding the header unnecessarily.
      4d3c0179
    • Tor Lillqvist's avatar
      Fix for #111028, thanks to J. Ali Harlow, who writes: I found that the · 323bcc61
      Tor Lillqvist authored
      2003-06-28  Tor Lillqvist  <tml@iki.fi>
      
      	Fix for #111028, thanks to J. Ali Harlow, who writes:
      	I found that the GdkPixmap->GdkImage reference really isn't
      	important. It's only really there to have somewhere convenient to
      	store the location of the pixel data in the pixmap and as an easy
      	way of accessing the dimensions of that data. I have therefore put
      	together a fix which removes this reference entirely which seems
      	to solve the problem.
      
      	* gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
      	Instead of a pointer to a GdkImage, keep a pointer to the pixels
      	directly.
      
      	* gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
      	(_gdk_win32_new_image): New function, replacing the above. Creates
      	a GdkImage without any associated GdkPixmap.
      	(gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
      
      	* gdk/win32/gdkprivate-win32.h: Remove from here, too.
      
      	* gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
      	* gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
      	* gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
      	* gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
      	* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
      	gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
      	Corresponding changes.
      323bcc61
  9. 27 Jun, 2003 1 commit
    • Soeren Sandmann's avatar
      Make it compile with C89 compilers. · 8597f100
      Soeren Sandmann authored
      Fri Jun 27 03:56:59 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Make
      	it compile with C89 compilers.
      
      Thu Jun 26 21:41:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktreeviewcolumn.c
      	(gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
      	and "is_expanded" if the new value is different fromt he old one.
      8597f100
  10. 25 Jun, 2003 2 commits
  11. 24 Jun, 2003 2 commits
    • Matthias Clasen's avatar
      Add a blurb for shadow_type. · 3ec234a6
      Matthias Clasen authored
      2003-06-24  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for shadow_type.
      
      	* gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser):
      	(gtk_widget_class_list_style_properties): Use same parameter names as in
      	header (to silence gtk-doc).
      
      	* gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
      3ec234a6
    • BST 2003  Tony Gale's avatar
      Thread support updates from Owen. Various suggestions from Steve Chaplin. · 7395e4da
      BST 2003 Tony Gale authored
      Tue Jun 24 20:00:45 BST 2003  Tony Gale <gale@gtk.org>
      
              * docs/faq/gtk-faq.sgml: Thread support updates
              from Owen. Various suggestions from Steve Chaplin.
      7395e4da