1. 03 Jul, 2003 1 commit
    • 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
  2. 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
  3. 01 Jul, 2003 6 commits
  4. 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
  5. 29 Jun, 2003 5 commits
  6. 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
  7. 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
  8. 25 Jun, 2003 2 commits
  9. 24 Jun, 2003 3 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
    • Mohammad DAMT's avatar
      Updated Indonesian translation · 2baea297
      Mohammad DAMT authored
      2003-03-24  Mohammad DAMT  <mdamt@bisnisweb.com>
      
      	* id.po: Updated Indonesian translation
      2baea297
  10. 23 Jun, 2003 3 commits
    • Matthias Clasen's avatar
      Move GtkIMContext to "Abstract Base Classes", since its abstract. · d927f2a2
      Matthias Clasen authored
      2003-06-24  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtk-docs.sgml: Move GtkIMContext to "Abstract Base Classes", since its abstract.
      
      	* gtk/tmpl/gtkaccessible.sgml:
      	* gtk/tmpl/gtkimmulticontext.sgml:
      	* gtk/tmpl/gtkimcontextsimple.sgml:
      	* gtk/tmpl/gtkimcontext.sgml:
      	* gtk/tmpl/gtkviewport.sgml:
      	* gtk/tmpl/gtkcellrenderertext.sgml:
      	* gtk/tmpl/gtkcellrendererpixbuf.sgml:
      	* gtk/tmpl/gtkcelleditable.sgml:
      	* gtk/tmpl/gtktreemodelsort.sgml:
      	* gtk/tmpl/gtktreednd.sgml:
      	* gtk/tmpl/gtktreesortable.sgml: Add short descriptions.
      d927f2a2
    • Matthias Clasen's avatar
      Add RTL variants of stock icons. · 87d528d7
      Matthias Clasen authored
      2003-06-23  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/Makefile.am (HTML_IMAGES): Add RTL variants of stock icons.
      
      	* gtk/tmpl/gtkstock.sgml: Document RTL variants of stock icons.
      87d528d7
    • Matthias Clasen's avatar
      Remove the pointless refusal to load images with dubious disposal mode on · 38068479
      Matthias Clasen authored
      2003-06-23  Matthias Clasen  <maclas@gmx.de>
      
      	* io-gif.c (gif_get_frame_info): Remove the pointless refusal to load images with dubious
      	disposal mode on the first frame. Just ignore it, as everybody else does.
      38068479
  11. 22 Jun, 2003 6 commits
    • Matthias Clasen's avatar
      Typo fix. · e7444133
      Matthias Clasen authored
      e7444133
    • Matthias Clasen's avatar
      Add gdk_pixbuf_loader_new_with_mime_type. · de07fd2a
      Matthias Clasen authored
      2003-06-22  Matthias Clasen  <matthias@localhost.localdomain>
      
      	* gdk-pixbuf/gdk-pixbuf-sections.txt: Add gdk_pixbuf_loader_new_with_mime_type.
      de07fd2a
    • Matthias Clasen's avatar
      Reset block_count to 0 for all application extensions, otherwise the data · a378391a
      Matthias Clasen authored
      2003-06-22  Matthias Clasen  <matthias@localhost.localdomain>
      
      	* io-gif.c (gif_get_extension): Reset block_count to 0 for all application extensions, otherwise the data blocks
      	of unknown extensions are not propertly skipped.
      
      	Second half of the fix for #106962, handle frames extending beyond the logical screen:
      
      	* io-gif.c (clip_frame): New helper function to clip a rectangle to the logical screen size of the gif.
      	(maybe_update): New helper function to call update_func only if the rectangle is not completely off-bounds.
      	(gif_get_lzw): Read frames extending outside the logical screen size, but be careful clip to the logical screen size
      	when operating on the composite pixbuf and when calling update_func.
      	(gif_init): Set the animation size to the logical screen size.
      	(gif_get_frame_info): Don't refuse to load images with frames extending beyond the logical screen size.
      
      	* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Be careful to clip all rectangles to the logical screen
      	size, also handle the fact that frames may be completely off-bounds.
      a378391a
    • Metin Amiroff's avatar
      Updated Azerbaijani translation. · 1a3ba4fd
      Metin Amiroff authored
      2003-06-22  Metin Amiroff <metin@karegen.com>
      
      	* az.po: Updated Azerbaijani translation.
      1a3ba4fd
    • Tor Lillqvist's avatar
      Mention dup'd bug#s. · 7bd14447
      Tor Lillqvist authored
      7bd14447
    • Tor Lillqvist's avatar
      When emulating X11's automatic grab on button down, pass owner_events as · 25359a2a
      Tor Lillqvist authored
      2003-06-21  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate): When
      	emulating X11's automatic grab on button down, pass owner_events
      	as FALSE. According to the XLib spec, automatic grabs use True for
      	owner_events when OwnerGrabButtonMask is selected, and I don't see
      	the X11 backend doing that. (#110271)
      	(find_window_for_pointer_event): Improve debugging output.
      25359a2a