1. 01 Aug, 2008 1 commit
    • Hans Breuer's avatar
      build gdkwindowimpl · 49199978
      Hans Breuer authored
      2008-08-01  Hans Breuer  <hans@breuer.org>
      
      	* gdk/makefile.msc : build gdkwindowimpl
      
      	* gtk/gtkwidget.c : fix c99ism - declaration needs to be at the
      	start of a block
      
      	* tests/makefile.msc : update
      
      
      svn path=/trunk/; revision=20926
      49199978
  2. 21 Jul, 2008 1 commit
    • Michael Natterer's avatar
      Bug 442042 – GtkScaleButton is too limited · b8a2347c
      Michael Natterer authored
      2008-07-21  Michael Natterer  <mitch@imendio.com>
      
      	Bug 442042 – GtkScaleButton is too limited
      
      	* tests/testvolumebutton.c: forgot to commit code that tests
      	toggling the button's orientation. Also fixes the file's coding
      	style.
      
      
      svn path=/trunk/; revision=20882
      b8a2347c
  3. 18 Jul, 2008 1 commit
    • Federico Mena Quintero's avatar
      Don't do funny casts to avoid compiler warnings · 0278fdcb
      Federico Mena Quintero authored
      2008-07-18  Federico Mena Quintero  <federico@novell.com>
      
      	* demos/gtk-demo/changedisplay.c (find_toplevel_at_pointer): Don't
      	do funny casts to avoid compiler warnings.
      
      	* demos/gtk-demo/textview.c (easter_egg_callback): Likewise.
      
      	* gtk/gtkmain.c (rewrite_event_for_grabs, gtk_get_event_widget): Likewise.
      
      	* gtk/gtkmodules.c (load_module): Likewise.
      
      	* gtk/gtkselection.c (gtk_selection_convert): Likewise.
      
      	* gtk/gtktipsquery.c (gtk_tips_query_event): Likewise.
      
      	* gtk/queryimmodules.c (query_module): Likewise.
      
      	* tests/testgtk.c (create_gridded_geometry, create_key_lookup)
      	(find_widget_at_pointer): Likewise.
      Signed-off-by: default avatarFederico Mena Quintero <federico@novell.com>
      
      svn path=/trunk/; revision=20862
      0278fdcb
  4. 15 Jul, 2008 1 commit
  5. 11 Jul, 2008 1 commit
    • Kristian Rietveld's avatar
      Fix #316087. · 2cc12474
      Kristian Rietveld authored
      2008-07-11  Kristian Rietveld  <kris@gtk.org>
      
      	Bug 316087 - Resizing columns is chaotic
      
      	* gtk/gtktreeprivate.h: add new member fields.
      
      	* gtk/gtktreeview.c (gtk_tree_view_init), (validate_row): set post
      	validation flag,
      	(gtk_tree_view_size_allocate_columns): rework the size allocation
      	mechanism to only recalculate the expand values if the width of the
      	widget, content or the column configuration has changed,
      	(gtk_tree_view_size_allocate): move call to size_allocate_columns()
      	to before the adjustment updates so the proper width is used after
      	we updated it,
      	(gtk_tree_view_button_press), (gtk_tree_view_motion_resize_column):
      	use the column width minus the expand value for the resized width,
      	(gtk_tree_view_move_column_after): update call to
      	gtk_tree_view_size_allocate_columns().
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand): set use
      	resized width to FALSE.
      
      	* tests/Makefile.am:
      	* tests/testtreecolumnsizing.c: new interactive test program
      	for testing column resizing with different column configurations.
      
      
      svn path=/trunk/; revision=20818
      2cc12474
  6. 01 Jul, 2008 1 commit
  7. 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
  8. 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
  9. 20 Jun, 2008 2 commits
    • Hans Breuer's avatar
      must return a value of the appropriate type with g_return_val_if_fail · 8e2ef498
      Hans Breuer authored
      2008-06-20  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkmenuitem.c gtk/gtkmessagedialog.c gtk/gtkplug.c : must return
      	a value of the appropriate type with g_return_val_if_fail
      	
      	* gdk/gdkconfig.h.win32 : add the GSEAL definition here as well
      
      	* gtk/gtkfilesystem.c : don't add the "File System" on win32
      
      	* tests/makefile.msc : remove broken autotestfile(system|chooser) 
      	from build
      
      
      svn path=/trunk/; revision=20657
      8e2ef498
    • Mikael Hallendal's avatar
      Replaced use of gtk_signal_connect with the g_signal_connect equivalents. · df11b00d
      Mikael Hallendal authored
      2008-06-20  Mikael Hallendal  <micke@imendio.com>
      
      	* tests/testthreads.c: Use g_signal_connect instead of
      	gtk_signal_connect.
      
      	* demos/testgtk/main.c: switched to use GSignal instead of GtkSignal.
      	While the code is not built, people may still look at it.
      
      svn path=/trunk/; revision=20654
      df11b00d
  10. 19 Jun, 2008 2 commits
    • Christian Persch's avatar
      Use g_set_error_literal where appropriate. Bug #538640. · 446f4175
      Christian Persch authored
      svn path=/trunk/; revision=20463
      446f4175
    • 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
  11. 18 Jun, 2008 3 commits
    • Michael Natterer's avatar
      tests/Makefile.am tests/autotestfilechooser.c tests/buildertest.c · d5565f5b
      Michael Natterer authored
      2008-06-18  Michael Natterer  <mitch@imendio.com>
      
      	* tests/Makefile.am
      	* tests/autotestfilechooser.c
      	* tests/buildertest.c
      	* tests/defaultvaluetest.c
      	* tests/floatingtest.c
      	* tests/objecttests.c
      	* tests/pixbuf-init.c
      	* tests/textbuffertest.c: remove unit tests here...
      
      	* gtk/tests/Makefile.am
      	* gtk/tests/builder.c
      	* gtk/tests/defaultvalue.c
      	* gtk/tests/filechooser.c
      	* gtk/tests/floating.c
      	* gtk/tests/object.c
      	* gtk/tests/pixbuf-init.c
      	* gtk/tests/textbuffer.c: ...and add them here.
      
      
      svn path=/trunk/; revision=20450
      d5565f5b
    • Michael Natterer's avatar
      some more undeprecation. · 060948a4
      Michael Natterer authored
      2008-06-18  Michael Natterer  <mitch@imendio.com>
      
      	* tests/testgtk.c: some more undeprecation.
      
      
      svn path=/trunk/; revision=20447
      060948a4
    • Michael Natterer's avatar
      deprecate gtk_type_class(). · 73800758
      Michael Natterer authored
      2008-06-18  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtktypeutils.[ch]: deprecate gtk_type_class().
      
      	* gtk/gtk.symbols: changed accordingly.
      
      	* gtk/gtksettings.c (gtk_settings_install_property)
      	(gtk_settings_install_property_parser): get rid of using
      	gtk_type_class() by keeping a static reference to GtkSettingsClass
      	around in both functions and passing that pointer on to
      	settings_install_property_parser().
      
      	* tests/testgtk.c: use g_type_class_ref()/unref() instead of
      	gtk_type_class().
      
      	* gtk/gtkobject.c: #undef GTK_DISABLE_DEPRECATED around including
      	gtktypeutils.h.
      
      
      svn path=/trunk/; revision=20444
      73800758
  12. 29 May, 2008 3 commits
    • Matthias Clasen's avatar
      Make make check work. · 5505f5b7
      Matthias Clasen authored
      svn path=/trunk/; revision=20242
      5505f5b7
    • Matthias Clasen's avatar
      Bug 522084 – GIcon support for GtkIconTheme & GtkImage · ee8253f9
      Matthias Clasen authored
      2008-05-27  Matthias Clasen  <mclasen@redhat.com>
      
              Bug 522084 – GIcon support for GtkIconTheme & GtkImage
      
              * gtk/gtkicontheme.[hc]: Add support for GIcon based lookups.
              * gtk/gtkimage.[hc]: Allow setting an image from a GIcon.
              * gtk/gtk.symbols: Additions
              * tests/testimage.c: Add a GIcon test
      
      
      svn path=/trunk/; revision=20236
      ee8253f9
    • Michael Natterer's avatar
      gtk/Makefile.am add a single-include header for the unix print stuff. · c8e67f3c
      Michael Natterer authored
      2008-05-29  Michael Natterer  <mitch@imendio.org>
      
      	* gtk/Makefile.am
      	* gtk/gtkunixprint.h: add a single-include header for the unix
      	print stuff.
      
      	* gtk/gtkpagesetupunixdialog.h
      	* gtk/gtkprinter.h
      	* gtk/gtkprintjob.h
      	* gtk/gtkprintunixdialog.h: add single-include guards that #error
      	out if GTK_DISABLE_SINGLE_INCLUDES is defined and any of these
      	files is included individually.
      
      	* gtk/gtkprintbackend.h
      	* gtk/gtkprinter-private.h
      	* modules/printbackends/cups/gtkprintbackendcups.c
      	* modules/printbackends/cups/gtkprintercups.h
      	* modules/printbackends/lpr/gtkprintbackendlpr.c
      	* tests/buildertest.c
      	* tests/defaultvaluetest.c
      	* docs/tools/widgets.c: include <gtk/gtkunixprint.h> instead of
      	individual files.
      
      
      svn path=/trunk/; revision=20230
      c8e67f3c
  13. 25 May, 2008 2 commits
  14. 24 May, 2008 1 commit
  15. 23 May, 2008 2 commits
    • Hans Breuer's avatar
      updated fix c99ism (variable at start of block export functions for window · 0b57c6b9
      Hans Breuer authored
      2008-05-23  Hans Breuer  <hans@breuer.org>
      
      	* **/makefile.msc gtk/makefile.msc.in : updated
      	* gtk/gtkwidget.c : fix c99ism (variable at start of block
      	* gdk/gdk.symbols gtk/gtk.symbols : export functions for window 
      	redirection
      	* gtk/gtkfilechooserdefault.c : #include <locale.h> for 
      	setlocale(LC_ALL, ...)
      
      svn path=/trunk/; revision=20131
      0b57c6b9
    • Michael Natterer's avatar
      perf/widgets.h tests/print-editor.c tests/prop-editor.h · c75c6bf4
      Michael Natterer authored
      2008-05-23  Michael Natterer  <mitch@gimp.org>
      
      	* perf/widgets.h
      	* tests/print-editor.c
      	* tests/prop-editor.h
      	* tests/testmountoperation.c
      	* tests/testmultidisplay.c
      	* tests/testnouiprint.c
      	* tests/testprint.c
      	* tests/testprintfileoperation.h
      	* tests/testtreesort.c
      	* tests/textbuffertest.c: include <gtk/gtk.h> instead of single
      	files. Remove some redundant includes.
      
      
      svn path=/trunk/; revision=20128
      c75c6bf4
  16. 21 May, 2008 2 commits
    • 21:10:15  Tim Janik's avatar
      added GdkRectangle *clip_rect to gtk_widget_get_snapshot(). · b3d160ce
      21:10:15 Tim Janik authored
      2008-05-21 21:10:15  Tim Janik  <timj@imendio.com>
      
              * gtk/gtkwidget.h: added GdkRectangle *clip_rect to gtk_widget_get_snapshot().
      
              * gtk/gtkwidget.c: clip the returned snapshot pixmap to clip_rect.
              return snapshot pixmap coordinates widget relative in *clip_rect.
      
              * tests/testgtk.c: fixed bogus NULL pointer unref.
      
      
      svn path=/trunk/; revision=20124
      b3d160ce
    • 10:49:20  Tim Janik's avatar
      Bug 318807 – Offscreen windows and window redirection. · 4111cf20
      10:49:20 Tim Janik authored
      2008-03-18 10:49:20  Tim Janik  <timj@imendio.com>
      
      	* Applied pixmap redirection patch by Alexander Larsson with
      	various updates from:
      	Bug 318807 – Offscreen windows and window redirection.
      
      
      	Updates:
      
      	* updated docs to mention "Since 2.16".
      
      	* tests/testgtk.c: fixed snapshooting pixmap leak.
      	convert pixmap to pixbuf after snapshooting, to compensate for different
      	bit depths (occurs when snapshooting ARGB visuals and displaying the
      	pixmap in an RGB visual).
      
      	* gdk/gdkwindow.[hc]: made GdkWindowRedirect private.
      
      	* gdk/gdkwindow.c: removed damage idle handler, there's no aparent
      	need for it. enqueue damage notification as GDK_DAMAGE events
      	for each painting redirection at the start of the event queue.
      	consider windows with a redirection fully visible when invalidating,
      	and when updating from backing store. cleaned up stale variables.
      
      	* gdk/gdkevents.c: added _gdk_event_queue_prepend().
      
      	* gtk/gtkwidget.c: fixed coordinates for !NO_WINDOW widgets in
      	gtk_widget_get_snapshot; this fixes garbage snap offsets for gammacurve,
      	tree, drawingarea, text, handlebox, etc.
      	clip the redirected window hierarchy to window sizes, the visible
      	rectangles don't need to be taken into account here.
      	extended snapshooting docs to recommend gdk_pixbuf_get_from_drawable()
      	in case pixmap visuals could mismatch.
      
      	* gdk/x11/gdkwindow-x11.c: removed _gdk_windowing_window_get_visible_rect().
      
      
      	Base patch:
      
      	* tests/testgtk.c: add a "Snapshot" test to demonstrate snapshooting
      	of possibly obscured widgets into an offscreen pixmap.
      
      	* gtk/gtkwidget.[hc]: add GtkWidget::damage-event signal, add
      	gtk_widget_get_snapshot() to render a widget's contents to a GdkPixmap.
      
      	* gtk/gtkmain.c: dispatch GDK_DAMAGE events.
      
      	* gdk/gdkwindow.c: moved outer gdk_window_new() and gdk_window_reparent()
      	implementations here, adapted them to propagate redirects to child windows.
      	gdk_window_end_paint(): copy repainted window contents to redirection pixmap,
      	clipped to visible region. queue GDK_DAMAGE event delivery.
      	gdk_window_redirect_to_drawable(): install window painting redirection.
      	gdk_window_remove_redirection(): remove previously installed redirection.
      
      	* gdk/x11/gdkwindow-x11.c: added _gdk_windowing_window_get_visible_rect(),
      	renamed _gdk_window_new() and _gdk_window_reparent().
      
      	* gdk/gdkwindow.h: added GdkWindowRedirect* to GdkWindowObject, export
      	gdk_window_redirect_to_drawable() and gdk_window_remove_redirection().
      
      	* gdk/gdkevents.h: added GDK_DAMAGE event type.
      
      	* gdk/gdkevents.c: extract time and state from GDK_DAMAGE events.
      
      	* gdk/gdkinternals.h: added internal prototypes.
      
      
      
      svn path=/trunk/; revision=20122
      4111cf20
  17. 11 Apr, 2008 1 commit
  18. 02 Apr, 2008 1 commit
  19. 20 Mar, 2008 1 commit
  20. 17 Mar, 2008 2 commits
    • Tor Lillqvist's avatar
      Build testmountoperation only on Unix for now. · 39e8f9e5
      Tor Lillqvist authored
      2008-03-18  Tor Lillqvist  <tml@novell.com>
      
      	* tests/Makefile.am: Build testmountoperation only on Unix for now.
      
      
      svn path=/trunk/; revision=19895
      39e8f9e5
    • Christian Kellner's avatar
      Implement GtkMountOperation, a subclass of GMountOperation to be used with · e1092e9a
      Christian Kellner authored
      2008-03-17  Christian Kellner  <gicmo@gnome.org>
      
              Implement GtkMountOperation, a subclass of GMountOperation
              to be used with gio wherever there is the need to ask the
              user for credentials or questions while mounting a volume.
              This is bug #522245
      
              * gtk/gtkmountoperation.c:
              * gtk/gtkmountoperation.h:      
              Implement GtkMountOperation.
              
              * gtk/gtk.h: Add gtkmountoperation.h
              * gtk/Makefile.am: Add gtkmountoperation.[hc]
              * gtk/gtk.symbols: Add symbols of GtkMountOperation.
              * tests/testmountoperation.c: Test program for it.
              * tests/Makefile.am: Add testmountoperation.
      
      
      svn path=/trunk/; revision=19894
      e1092e9a
  21. 10 Mar, 2008 1 commit
  22. 07 Mar, 2008 2 commits
    • Johan Dahlin's avatar
      - Treat enums like enums and not values - Avoid invalid free, in case of · 424cc287
      Johan Dahlin authored
      2008-03-07  Johan Dahlin  <johan@gnome.org>
      
          * gtk/gtkbuilder.c:
          * gtk/gtkbuilderparser.c:
          * gtk/gtkbuilderprivate.h:
          * gtk/gtkiconfactory.c:
          * tests/buildertest.c:
          - Treat enums like enums and not values
          - Avoid invalid free, in case of more than two sources
          - Add better error messages
          - Add much improved tests
          (#520979, Christian Persch)
      
      
      svn path=/trunk/; revision=19732
      424cc287
    • Johan Dahlin's avatar
      Implement GtkBuildable on GtkIconFactory, to make it possible to register · 61be2a71
      Johan Dahlin authored
      2008-03-06  Johan Dahlin  <jdahlin@async.com.br>
      
          * docs/reference/gtk/tmpl/gtkiconfactory.sgml:
          * gtk/gtkbuilder.c:
          * gtk/gtkbuilderprivate.h:
          * gtk/gtkiconfactory.c:
          * tests/buildertest.c:
          Implement GtkBuildable on GtkIconFactory, to make
          it possible to register custom stock icons.
          Fixes #517066
      
      
      svn path=/trunk/; revision=19726
      61be2a71
  23. 05 Mar, 2008 1 commit
    • Johan Dahlin's avatar
      Restore accidentally broken test. · 51b658c6
      Johan Dahlin authored
      2008-03-05  Johan Dahlin  <johan@gnome.org>
      
          * tests/buildertest.c (test_list_store): Restore accidentally broken test.
      
      
      svn path=/trunk/; revision=19713
      51b658c6
  24. 02 Mar, 2008 2 commits
    • Johan Dahlin's avatar
      Remove autotestkeywords, it's added later, fixes non-C++ build. (#496032, · 2bf3084c
      Johan Dahlin authored
      2008-03-02  Johan Dahlin  <johan@gnome.org>
      
          * tests/Makefile.am (noinst_PROGRAMS): Remove autotestkeywords, it's added later,
          fixes non-C++ build.
          (#496032, Nelson Benitez)
      
      
      svn path=/trunk/; revision=19688
      2bf3084c
    • Johan Dahlin's avatar
      Add translatable/context and comment attributes on <col> tags under a · e2534d54
      Johan Dahlin authored
      2008-02-29  Johan Dahlin  <johan@gnome.org>
      
      	* demos/gtk-demo/demo.ui:
      	* gtk/gtkbuilderparser.c:
      	* gtk/gtkbuilderprivate.h:
      	* gtk/gtkliststore.c:
      	* tests/buildertest.c:
      	Add translatable/context and comment attributes on
      	<col> tags under a GtkListStore. Refactor parts of the
      	translation api and make it available inside gtk+ itself.
      	Update tests and example.
      	Fixes a part of #518642
      
      
      svn path=/trunk/; revision=19685
      e2534d54
  25. 01 Mar, 2008 1 commit
    • Johan Dahlin's avatar
      Do not use g_error for a few more errors, instead set the GError sent in · a57b66aa
      Johan Dahlin authored
      2008-02-29  Johan Dahlin  <johan@gnome.org>
      
      	* gtk/gtkbuilder.c:
      	* gtk/gtkbuilderparser.c:
      	* gtk/gtkbuilderprivate.h:
      	Do not use g_error for a few more errors, instead set
      	the GError sent in through add_from_file/add_from_string.
      	* tests/buildertest.c:
      	Add a couple of new parsing tests.
      	(#519199, Pavel Syomin)
      
      
      svn path=/trunk/; revision=19681
      a57b66aa
  26. 27 Feb, 2008 1 commit
    • Emmanuele Bassi's avatar
      Revert back to r19454. · 2e73e9b4
      Emmanuele Bassi authored
      2008-02-27  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* tests/testgtk.c: Revert back to r19454.
      
      svn path=/trunk/; revision=19665
      2e73e9b4
  27. 22 Feb, 2008 1 commit
  28. 21 Feb, 2008 1 commit