1. 01 Jul, 2008 1 commit
  2. 30 Jun, 2008 1 commit
    • Cody Russell's avatar
      Practically everything changed. · fce9c8b7
      Cody Russell authored
      2008-06-30  Cody Russell  <bratsche@gnome.org>
      
              * Practically everything changed.
      
              Change	all references	of GIMP	Toolkit	(and variations	of it)
              to GTK+	Toolkit, showing no mercy at all to our	beloved
      	ancestry. (#540529)
      
      
      svn path=/trunk/; revision=20709
      fce9c8b7
  3. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
      
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      
      
      svn path=/trunk/; revision=20669
      d97cdbdf
  4. 19 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Use g_object_new instead of gtk_widget_new · 1a30e125
      Johan Dahlin authored
      2008-06-19  Johan Dahlin  <jdahlin@async.com.br>
      
          * demos/testpixbuf.c (new_testrgb_window):
          * gtk/gtkctree.c (gtk_ctree_new_with_titles):
          * gtk/gtkitemfactory.c (gtk_item_factory_construct),
          (gtk_item_factory_create_item):
          * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
          * gtk/gtkprogressbar.c (gtk_progress_bar_new),
          (gtk_progress_bar_new_with_adjustment):
          * gtk/gtkscrolledwindow.c (gtk_scrolled_window_new):
          * gtk/gtktext.c (gtk_text_new):
          * gtk/gtkviewport.c (gtk_viewport_new):
          * tests/simple.c (main):
          * tests/testgtk.c (create_statusbar), (create_get_image),
          (create_saved_position), (create_tooltips), (create_cursors),
          (create_display_screen), (create_progress_bar), (create_idle_test):
          * tests/testmultidisplay.c (make_selection_dialog), (main):
          * tests/testmultiscreen.c (main):
          * tests/testrgb.c (new_testrgb_window):
          Use g_object_new instead of gtk_widget_new
      
      
      svn path=/trunk/; revision=20462
      1a30e125
  5. 06 Mar, 2004 1 commit
  6. 13 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · 37278865
      Manish Singh authored
      Sun Oct 13 16:20:41 2002  Manish Singh  <yosh@gimp.org>
      
              * tests/pixbuf-randomly-modified.c tests/prop-editor.c
              tests/testcalendar.c tests/testdnd.c tests/testgtk.c tests/testinput.c
              tests/testmultidisplay.c tests/testmultiscreen.c tests/testrgb.c
              tests/testselection.c tests/testsocket.c tests/testsocket_common.c
              tests/testtext.c tests/testtextbuffer.c tests/testtreecolumns.c
              tests/testtreeedit.c tests/testtreeflow.c tests/testtreefocus.c
              tests/testtreesort.c tests/testtreeview.c tests/testxinerama.c
              tests/treestoretest.c: Deprecation cleanup
      
              * tests/Makefile.am: Added disable deprecation flags
      37278865
  7. 02 Oct, 2002 1 commit
    • Owen Taylor's avatar
      Export _gdk_draw_pixbuf as gdk_draw_pixbuf(), rename the _draw_pixbuf · 6cb79658
      Owen Taylor authored
      Wed Oct  2 17:46:53 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
              gdk/gdkwindow.c gdk/gdkdrawable.c: Export _gdk_draw_pixbuf
              as gdk_draw_pixbuf(), rename the _draw_pixbuf virtual
              function to draw_pixbuf. (#60582)
      
              * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable[_alpha]):
              Note that these functions are obsolete in the docs.
      
              * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
              Remove all the sanity checks now we make it clear
              that it is obsolete name for gdk_draw_pixbuf().
      
              * gdk/gdkpixmap.c gtk/gtkcellrendererpixbuf.c gtk/gtkimage.c
                gtk/gtkpixmap.c demos/testpixbuf-scale.c demos/testpixbuf.c
                tests/testrgb.c: Use gdk_draw_pixbuf() everywhere.
      
              * gtk/gtklabel.c (gtk_label_set_mnemonic_widget): Fix
              some warnings.
      
              * gdk/gdkinternals.h (struct _GdkEventPrivate): Fix missed
              bit from last gdk_event_get_screen() change.
      
              * gdk/gdkevents.c: Couple of small fixes.i
      6cb79658
  8. 04 Jan, 2002 1 commit
    • Owen Taylor's avatar
      Private function to tell if we have RENDER extension. · d12c9702
      Owen Taylor authored
      Thu Jan  3 22:18:15 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
      	(_gdk_x11_have_render): Private function to tell if we have RENDER
      	extension.
      
      	* gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
      	None if we don't have RENDER extension.
      
      	* gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
      	use Xft unless we have render extension.
      
      	* gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
      	Handle missing render extension.
      
      	* gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
      	gdk/gdkinternals.h: Add a private copy_to_image() virtual function
      	to the GdkDrawable vtable that extends get_image() to allow
      	copying onto existing images.  Make the default implementation of
      	get_image() use this so that backends don't have to implement
      	both. Add private wrapper _gdk_drawable_copy_to_image().
      
      	* gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
      	gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
      	copy_to_image() semantics, speed up by using ShmPixmaps and
      	XCopyArea when possible, XFlush() after ungrabbing the server,
      	generally redo the logic once again.
      
      	* gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
      	_gdk_windowing_bits_per_depth(): Function to convert from depth to
      	bits-per-pixel. (We assume only one bpp per depth - X requires
      	this.)
      
      	* gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
      	scratch image code into a generic _gdk_image_get_scratch() chunk
      	of code that we can use other places we need scratch images.
      
      	* gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
      	Add _gdk_image_new_for_depth() as the backend
      	to _gdk_image_new() to allowing creating images with
      	a depth and no visual.
      
      	* gdk/gdkpixbuf-drawable.c: Fix so that getting
      	parts of images not at 0,0 actually works.
      
      	* gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
      	gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c:
      	 - Add a new GdkDrawableClass vfunc _draw_pixbuf, and
      	  _gdk_draw_pixbuf() [ will be made public later ], to allow
      	  backends to accelerate drawing pixbufs.
      	 - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
      	   to be the default implementation.
      	 - Update docs for gdk_pixbuf_render_to_drawable_alpha().
      	 - Optimize the default implementation by using
      	   _gdk_image_copy_to_pixmap() and scratch shared images, and
      	   special casing the compositing.
      
      	* gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
      	with alpha using the RENDER extension.
      
              * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
      	Optimize by _gdk_image_copy_to_pixmap() and scratch images.
      
      	* tests/testrgb.c: Add test for speed of alpha composition,
      	reduce the number of iterations since alpha composition
      	can be a bit slow.
      
      	* gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap):
      	Private function to get a ShmPixmap for an image, if possible.
      d12c9702
  9. 03 Apr, 2001 1 commit
    • Owen Taylor's avatar
      Updated. · af5c897e
      Owen Taylor authored
      Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* NEWS: Updated.
      
      	* configure.in: Remove support for uninstalled glib.
      
      	* gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
      	so as not to stop emission.
      
      	* gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
      	is no longer supported.
      
      	* Makefile.am gtk/Makefile.am tests/*: Moved all tests
      	into tests, change build order to build modules before
      	gtk/.
      
      	* modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
      	to here.
      af5c897e
  10. 26 Jul, 2000 1 commit
  11. 02 Jul, 2000 1 commit
    • Owen Taylor's avatar
      Add gdk_rgb_find_color() to get a pixel value using GdkRGB functionality · 4f1ccca5
      Owen Taylor authored
      Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
      	value using GdkRGB functionality given GdkColormap and GdkColor.
      	(name not final, waiting for inspiration.)
      
      	* gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
      	set the foreground/background of a GC using the GC's colormap
      	and GdkRGB. (name not final, waiting for inspiration.)
      
      	* gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from
      	gdk_rgb_get_cmap(), put #define in gdkcompat.h.
      
      	* gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
      	gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
      	purely a function of the corresponding colormap. Make
      	gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
      
      	* gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
      	gdk_pixbuf_*create_from_xpm_* in terms of
      	gdk_pixbuf_new_from_xpm_data(), move into platform independent
      	code.
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
      	advantage of the new draw_rgb_32_image_dithalign.
      
      	* gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
      
      	* gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
      	on each created GC.
      
      	* gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
      
      	* gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
      	which we initialize from the drawable when the GC is created,
      	if the drawable has a colormap.
      
      	* gdk/x11/gdkgc-x11.c: include string.h for memset.
      
      	* gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
      
      	* gtk/gtklayout.[ch]: Remove unsed configure serial member.
      4f1ccca5
  12. 15 Mar, 1999 1 commit
    • Tor Lillqvist's avatar
      This might seem like a large patch, but it isn't that bad, and nothing · c65508d2
      Tor Lillqvist authored
      should break on Unix/X11.
      
      Win32 merge and general portability stuff:
      
      * acconfig.h,configure.in: Check for <sys/time.h>.
      
      * gdk/win32: New directory (actually, been there for a while).
      
      * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
      NATIVE_WIN32, and use these. Always case fold on Win32. No
      backslashed escapes on native Win32.
      
      * gtk/{gtk.def,makefile.msc}: New files.
      
      * gtk/Makefile.am: Add above new files.
      
      * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
      instead of <strings.h>.
      
      * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
      config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
      <unistd.h> appropriately.
      
      * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
      Use ABS() (from <glib.h>) instead of abs().
      
      * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
      of gtk (and thus glib) headers, so that WIN32 will be
      defined. With MS C, include <direct.h> for mkdir prototype.
      
      * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
      some casts, needed by MS C.
      
      * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
      implemented).
      
      * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
      <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
      G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
      
      * gtk/gtkmain.h: Mark variables for export/import on Win32.
      
      * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
      the event is not a hint, or its window is not the slider. Needed
      on Win32, at least.
      
      * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
      unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
      G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
      a subdirectory of the Windows directory as gtk system
      configuration directory.
      
      * gtk/gtkselection.c: No chunks on Win32.
      
      * gtk/gtksocket.c: Not implemented on Win32.
      
      * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
      
      * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
      
      * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
      c65508d2
  13. 24 Feb, 1999 1 commit
  14. 10 Dec, 1998 1 commit
  15. 05 Oct, 1998 1 commit
  16. 11 Sep, 1998 1 commit
  17. 06 Sep, 1998 1 commit
  18. 01 Sep, 1998 1 commit