1. 26 May, 2011 1 commit
    • Matthias Clasen's avatar
      Move demos around · cf86c7c9
      Matthias Clasen authored
      The pixbuf-demo gets its own subdirectory, the other small
      tests move from demos/ to tests/.
      cf86c7c9
  2. 02 Nov, 2010 1 commit
  3. 31 Oct, 2010 1 commit
  4. 30 Oct, 2010 2 commits
  5. 02 Oct, 2010 1 commit
    • Benjamin Otte's avatar
      gdk: Make gdk_pixbuf_get_from_*() bindable · 872ef111
      Benjamin Otte authored
      The ownership of the return value for gdk_pixbuf_get_from_window() and
      gdk_pixbuf_get_from_surface() was determined by the first argument.
      
      Because that is an ugly design and the functions are new to GTK3, we
      decided to adapt them.
      And that adaptation was quite easy since almost no one passses anything
      but NULL as the first argument.
      872ef111
  6. 26 Sep, 2010 2 commits
  7. 10 Aug, 2010 1 commit
  8. 09 Nov, 2009 1 commit
  9. 19 Aug, 2004 1 commit
    • Manish Singh's avatar
      demos/testpixbuf-save.c Get rid of some unnecessary casts. · a1f93eb1
      Manish Singh authored
      Wed Aug 18 17:25:26 2004  Manish Singh  <yosh@gimp.org>
      
              * demos/testpixbuf-save.c
              * demos/gtk-demo/hypertext.c: Get rid of some unnecessary casts.
      
              * demos/gtk-demo/appwindow.c: Make activate_email and activate_url
              match the arguments for GtkAboutDialogActivateLinkFunc.
      a1f93eb1
  10. 07 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      Make s, S, Control-S, p, P, Control-P, i, I, Control-I test · 5119687a
      Matthias Clasen authored
      Wed Jan  7 02:50:55 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* demos/testpixbuf-save.c: Make s, S, Control-S, p, P, Control-P,
      	i, I, Control-I test gdk_pixbuf_save(), gdk_pixbuf_save_to_buffer()
      	and gdk_pixbuf_save_to_callback() with jpeg, png and ico formats,
      	respectively. Tests #82203.
      5119687a
  11. 29 Sep, 2002 1 commit
    • Manish Singh's avatar
      add deprecation compile flags · d8efdf00
      Manish Singh authored
      Sun Sep 29 14:22:47 2002 Manish Singh  <yosh@gimp.org>
      
              * contrib/gdk-pixbuf-xlib/Makefile.am demos/Makefile.am
              demos/gtk-demo/Makefile.am: add deprecation compile flags
      
              * demos/testanimation.c demos/testpixbuf-save.c demos/testpixbuf.c
              demos/gtk-demo/*.c gdk-pixbuf/gdk-pixbuf-animation.c
              gdk-pixbuf/gdk-pixbuf.c: minor cleanups, getting rid of
              unnecessary casts
      d8efdf00
  12. 09 Feb, 2002 1 commit
    • Owen Taylor's avatar
      XCopyArea with subwindow_mode = IncludeInferiors. (#70999) · 60542887
      Owen Taylor authored
      Sat Feb  9 00:16:31 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image):
              XCopyArea with subwindow_mode = IncludeInferiors.
              (#70999)
      
              * demos/testpixbuf-save.c (configure_cb): Fix a minor
              memory management problem.
      60542887
  13. 13 Dec, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      Remove assorted G_OBJECT casts where unnecessary. · d99bd97f
      Sebastian Wilhelmi authored
      
      2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gdk-pixbuf-animation.c, gdk-pixbuf-loader.c, gdk-pixpuf.c,
      	io-gif-animation.c, io-gif.c, io-tiff.c, test-loaders.c: Remove
      	assorted G_OBJECT casts where unnecessary.
      
      	* gdk-pixbuf-loader.c: Call g_object_ref and g_object_unref
      	instead of gdk_pixbuf_animation_ref and gdk_pixbuf_animation_unref
      	resp.
      
      	* gdk-pixbuf-csource.c, io-bmp.c, io-gif-animation.c, io-ico.c,
      	io-jpeg.c, io-png.c, io-pnm.c, io-ras.c, io-tga.c, io-wbmp.c,
      	io-xbm.c, io-xpm.c, test-gdk-pixbuf.c: Dito for gdk_pixbuf_ref and
      	gdk_pixbuf_unref.
      
      	* Makefile.am, pixops/Makefile.am: Compile everything with
      	-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED
      
      	* gdk-pixdata.c: Use g_ascii_strup() instead of g_strup().
      
      	* io-xpm.c: Use g_ascii_strcasecmp() instead of g_strcasecmp().
      
      	* demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
      	demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
      	and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
      	resp.
      d99bd97f
  14. 11 Dec, 2001 1 commit
  15. 20 Oct, 2001 1 commit
  16. 05 Oct, 2001 1 commit
    • Sven Neumann's avatar
      gdk-pixbuf/gdk-pixbuf-io.c gdk-pixbuf/gdk-pixbuf-private.h · 40c29264
      Sven Neumann authored
      2001-10-05  Sven Neumann  <sven@gimp.org>
      
      	* gdk-pixbuf/gdk-pixbuf-io.c
      	* gdk-pixbuf/gdk-pixbuf-private.h
      	* gdk-pixbuf/gdk-pixbuf.c
      	* gdk-pixbuf/gdk-pixbuf.h
      	* gdk-pixbuf/io-jpeg.c
      	* gdk-pixbuf/io-png.c: changed GDK_PIXBUF_ERROR_BAD_OPTION_VALUE to
      	GDK_PIXBUF_ERROR_BAD_OPTION to we can use it for bad keys too. Added
      	new public API gdk_pixbuf_get_option() to retrieve key/value pairs
      	set by an image loader. Added support for saving and reading PNG tEXt
      	chunks in PNG images.
      
      	* demos/testpixbuf-save.c
      	* demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk
      	feature.
      
      	* gdk-pixbuf/tmpl/gdk-pixbuf.sgml: adapt to changes in GDK_PIXBUF_ERROR
      	enum.
      40c29264
  17. 07 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Make gdkx.h the only installed header from gdk/x11. All structures in · 1bbf2ac7
      Owen Taylor authored
      Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
      
            Make gdkx.h the only installed header from gdk/x11.
            All structures in gdk/x11 are opaque.
      
      	* gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
      	Don't install gdk{drawable,pixmap,window}-x11.h.
      
      	* gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c:
      	Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11,
      	GdkVisualClass into C files.
      
      	* gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
      
      	* gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
      	gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
      	Add public functions to replace previously exported direct
      	structure access.
      	gdk_x11_colormap_get_{xdisplay,xcolormap}
      	gdk_x11_cursor_get_{xdisplay,xcursor},
      	gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual,
      	gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
      	gdk_x11_gc_get_{xdisplay,ximage}
      
      	* gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
      	GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
      
            Fix a number of variables and functions that were exported
            "accidentally" from GDK.
      
      	* gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
      	gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit,
      	gdk_input_exit,	gdk_windowing_exit, gdk_event_func, gdk_event_data,
      	gdk_event_notify, gdk_queued_events, gdk_queued_tail,
      	gdk_event_new, gdk_events_queue, gdk_events_unqueue,
      	gdk_event_queue_find_first, gdk_event_queue_remove_link,
      	gdk_event_queue_append, gdk_event_button_generate,
      	gdk_debug_flags, gdk_default_filters, gdk_parent_root.
      
      	* gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c,
      	   gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
      	gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks,
      	gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
      	gdk_use_xshm, gdk_input_ignore_core.
      
      	* gdk/x11/xsettings-common.h (xsettings_list_insert): Add
      	#defines to namespace functions into the private _gdk_
      	namespace.
      
      	* gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
      	to replace gdk_parent_root exported variable. Adjust and
      	deprecate GDK_ROOT_PARENT().
      
      	* demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
      	GDK_ROOT_PARENT usage, remove includes of port-specific
      	headers.
      
      	* gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for
      	_gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core,
      	gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
      
      	* gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
      	docs/Changes-2.0.txt: Remove gdk_wm_protocols,
      	gdk_wm_delete_window functions, gdk_wm_take_focus,
      	use gdk_atom_intern() instead.
      
      	* gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
      	  gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h}
      	  gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
      	  gtk/gtkselection.c
              Unexport gdk_selection_property, just use
      	gdk_atom_intern ("GDK_SELECTION").
      
      	* gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}:
      	Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type,
      	GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate,
      	GdkVisualprivate, gdk_x11_gc_flush.
      
            Make a number of public exports of variables into functions
            to increase encapsulation.
      
      	* gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h
      	gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer,
      	move to gdkinternals.h. Add gdk_device_get_core_pointer ().
      
      	* gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
      	docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code,
      	gdk_error_warnings.
      
      	* gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
      	  docs/Changes-2.0.txt:
      	s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
      	s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
      	Add gdk_x11_get_default_xdisplay().
      
      	* gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c
      	win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c
      	gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class,
      	Don't export gdk_progclass, move --class command line
      	option and handling to common portion of GDK.
      
            Miscellaneous fixes:
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
      	g_return_val_if_fail that should have been g_return_if_fail.
      
      	* gdk/gdkinternals.h gdk/gdkprivate.h: Move
      	gdk_synthesize_window_state() to the semi-public gdkprivate.h.
      
      	* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
      	X11 dependency.
      
      	* gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO:
      	Remove unused gdk_key_repeat_disable/restore.
      
      	* linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c
      	x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
      	Remove unused gdk_null_window_warnings variable.
      
      	* gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
      	it can be retrieved from the repository; it is too far
      	from functional to be worth having people check out;
      	it would be easier to start from scratch, I suspect.
      
      	* gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
      
      	* gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
      	gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
      	Fix some accidentally global variables and unused global variables.
      
      	* gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
      	gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
      	Fix some accidentally global variables and unused global variables.
      
            Add some space for future expansion to multihead.
      
      	* gdk/gdkdrawable.h: Add four reserved function pointers
      	for future expansion of GdkDrawableClass.
      
      	* gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
      	where we can put a GdkScreen * later.
      1bbf2ac7
  18. 23 Aug, 2001 1 commit
    • Owen Taylor's avatar
      [ Patch from Sebastian Wilhelmi, 52790 ] · a2d60d44
      Owen Taylor authored
      Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
      
      	[ Patch from Sebastian Wilhelmi, 52790 ]
      
      	* gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
      
      	* gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h:
      	Move compatibility macros from g[dt]kcompat.h to within
      	#ifndef G[DT]K_DISABLE_DEPRECATED in each file.
      
      	* gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
      
      	* demos/Makefile.am demos/gtk-demo/Makefile.am
                docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
                tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
      
      	* demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
                       testpixbuf.c}: Fix usages of deprecated functions.
      a2d60d44
  19. 10 Aug, 2001 1 commit
    • Havoc Pennington's avatar
      fix a typo. · f37a0627
      Havoc Pennington authored
      2001-08-07  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtkfilesel.c (open_ref_dir): fix a typo.
      
      	* gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
      	some fixage is needed here, but nothing simple. Owen understands
      	it. ;-)
      
              * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
      	sizing and positioning.  Also, fix bug in compute_geometry_hints
      	(width/height confusion for setting min size).
      	(gtk_window_move): new function
      	(gtk_window_resize): new function
      	(gtk_window_get_size): new function
      	(gtk_window_get_position): new function
      	(gtk_window_parse_geometry): new function
      
       	* gtk/gtkwidget.c (gtk_widget_set_size_request): new function
       	(gtk_widget_get_size_request): new function
       	(gtk_widget_get_usize): delete, that was a short-lived function
       	;-)
       	(gtk_widget_set_usize): deprecate
       	(gtk_widget_set_uposition): deprecate, make it a trivial
      	gtk_window_move() wrapper
      	(gtk_widget_class_init): remove x/y/width/height properties,
      	add width_request height_request
      
              * demos/*: update to avoid deprecated functions
      
      	* gtk/gtklayout.c: add x/y child properties
      
      	* gtk/gtkfixed.c: add x/y child properties, and get rid of
      	uses of "gint16"
      
      	* tests/testgtk.c (create_window_sizing): lots of tweaks to window
      	sizing test
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
      	configure events on toplevel windows are always in root window
      	coordinates, following ICCCM spec that all synthetic events
      	are in root window coords already, while real events are
      	in parent window coords. Previously the code assumed that
      	coords of 0,0 were parent window coords, which was
      	really broken.
      
       	* gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
       	warning
      
       	* gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
       	and GDK_HINT_USER_SIZE so we can set USSize and USPosition
       	hints in gtk_window_parse_geometry()
      
       	* gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
       	new USER_POS USER_SIZE hints
      f37a0627
  20. 07 May, 2001 1 commit
    • Alexander Larsson's avatar
      Include gdkfb.h on linux-fb. · 3e7bd8bf
      Alexander Larsson authored
      2001-05-07  Alexander Larsson  <alexl@redhat.com>
      
      	* demos/testpixbuf-save.c:
      	* demos/testpixbuf-drawable.c:
      	Include gdkfb.h on linux-fb.
      3e7bd8bf
  21. 03 May, 2001 1 commit
  22. 08 Feb, 2001 1 commit
    • Havoc Pennington's avatar
      remove validation idle · 4a3c8a36
      Havoc Pennington authored
      2001-02-08  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
      	validation idle
      
      	* demos/gtk-demo/main.c (create_tree): adjust to changes in text
      	cell renderer
      
      	* demos/pixbuf-demo.c (timeout): remove deprecated
      	gtk_widget_draw
      
      	* demos/testpixbuf-save.c (main): remove deprecated
      	gtk_drawing_area_size
      
      	* gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
      	buttons even if the model isn't setup. gtk_tree_view_check_dirty()
      	at the start of the allocation.
      	(gtk_tree_view_check_dirty): handle column->button == NULL, handle
      	unsetup or NULL model.
      
      	* gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the
      	even/odd/sorted cells in the tree view.
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
      	bugfixes
      
      	* gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
      	backgrounds with draw_flat_box using different detail for even/odd
      	rows.
      
      	* gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
      	row, so we can draw the alternating colors thing
      
      	* gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
      	property from a synonym property, notify for the synonym.
      	Also, nuke the background_gdk_set and foreground_gdk_set synonyms
      	(gtk_text_tag_get_property): Always return the font, even if
      	all its fields aren't set
      
      	* gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
      	store the attr list; it leaves us with no way to change attributes
      	in _render according to the render flags, and no way to implement
      	get_property. Instead store all the specific text attributes.
      	Separate whether an attribute is enabled from its value. Sync all
      	properties with GtkTextTag, make them all consistent, etc.
      
      	* gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
      	renderers can highlight the sort row/column
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
      	accessor functions to get values; this has the side effect of
      	showing up which accessor functions were missing. Added those.
      
      	* gtk/gtktreeviewcolumn.h: Replace set_justification with
      	set_alignment, to be consistent with GtkLabel, GtkMisc
      
      	* gtk/gtktreeviewcolumn.c: Added code to display sort indicator
      	arrow.
      
      	* gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
      
      	* gtk/gtktreesortable.h: updates in here
      4a3c8a36
  23. 06 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      Pixbuf saving, patch from David Welton. · 6b9f9072
      Havoc Pennington authored
      2000-10-05  Havoc Pennington  <hp@redhat.com>
      
              Pixbuf saving, patch from David Welton.
      
      	* Makefile.am (GDK_PIXBUF_LIBS): add INTLLIBS
      	(libgdk_pixbuf_1_3_la_SOURCES): add gdk-pixbuf-i18n.h
      
      	* gdk-pixbuf-i18n.h: Add _() to gdk-pixbuf
      
      	* io-png.c (gdk_pixbuf__png_image_save): PNG save routine.
      
      	* io-jpeg.c (gdk_pixbuf__jpeg_image_save): JPEG save routine.
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_save):
      	(gdk_pixbuf_savev): Implement pixbuf saving routines
      
      	* gdk-pixbuf.c (gdk_pixbuf_error_quark): pixbuf error quark
      	function
      
      	* gdk-pixbuf.h: Add public save routines; add pixbuf error
      	types
      
      	* gdk-pixbuf-io.h: Add save function to GdkPixbufModule
      
      2000-10-05  Havoc Pennington  <hp@redhat.com>
      
              * demos/testpixbuf-save.c: add pixbuf save test
      
      	* demos/Makefile.am: add testpixbuf-save.c
      6b9f9072