1. 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
  2. 18 Jun, 2008 2 commits
    • 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
  3. 25 May, 2008 1 commit
    • Björn Lindqvist's avatar
      tests/pixbuf-lowmem.c tests/pixbuf-random.c · 6eb51d28
      Björn Lindqvist authored
      2008-05-25  Björn Lindqvist  <bjourne@gmail.com>
      
      	* tests/pixbuf-lowmem.c
      	* tests/pixbuf-random.c
      	* tests/pixbuf-randomly-modified.c
      	* tests/pixbuf-read.c
      	* tests/pixbuf-threads.c
      	* tests/testgtk.c
      	* tests/testtreeview.c: Fix remaining compiler warnings in these
      	files (#523751).
      
      svn path=/trunk/; revision=20144
      6eb51d28
  4. 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
  5. 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
  6. 21 Feb, 2008 1 commit
  7. 01 Feb, 2008 1 commit
    • Michael Natterer's avatar
      initialize GdkColor structs to fix warning about uninitialized "pixel" · 2a9c3e80
      Michael Natterer authored
      2008-02-01  Michael Natterer  <mitch@imendio.com>
      
      	* tests/testgtk.c: initialize GdkColor structs to fix warning
      	about uninitialized "pixel" member.
      
      	* tests/testactions.c: connect the toolbar_style() callback so it
      	does something useful and doesn't warn about being defined but not
      	used.
      
      
      svn path=/trunk/; revision=19454
      2a9c3e80
  8. 29 Jun, 2007 1 commit
    • Allison Karlitskaya's avatar
      Connect the "destroy" signal so that the 'window' pointer is set back to · e8e5af2d
      Allison Karlitskaya authored
      2007-06-29  Ryan Lortie  <desrt@desrt.ca>
      
              * tests/testgtk.c (create_composited_window): Connect the "destroy" 
              signal so that the 'window' pointer is set back to NULL (like for the 
              other examples).
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_finalize): Don't 
              destroy the Damage here.  By finalize() XDestroyWindow has already 
              been called (and took the Damage with it).
      
              Bug #452046.
      
      
      svn path=/trunk/; revision=18290
      e8e5af2d
  9. 06 Jun, 2007 1 commit
    • Yevgen Muntyan's avatar
      new method, gtk_widget_modify_cursor() (#89314). · 2cbaeadf
      Yevgen Muntyan authored
      2007-06-06  Yevgen Muntyan  <muntyan@tamu.edu>
      
      	* gtk/gtkwidget.c:
      	* gtk/gtkwidget.h: new method, gtk_widget_modify_cursor() (#89314).
      
      	* gtkrc.c:
      	* gtkrc.h: new functions _gtk_rc_style_set_rc_property() and
      	_gtk_rc_style_unset_rc_property().
      
      	* gtk/gtk.symbols: added gtk_widget_modify_cursor.
      
      	* tests/testtext.c (do_cursor_visible_changed):
      	* tests/testgtk.c (create_styles): test it.
      
      
      svn path=/trunk/; revision=18066
      2cbaeadf
  10. 04 Jun, 2007 1 commit
  11. 03 Jun, 2007 1 commit
    • Emmanuele Bassi's avatar
      Add gtk_radio_button_set_value(), gtk_radio_button_get_current_value() and · 1fff6b4f
      Emmanuele Bassi authored
      2007-06-04  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* gtk/gtkradiobutton.h:
      	* gtk/gtkradiobutton.c:
      	* gtk/gtk.symbols: Add gtk_radio_button_set_value(),
      	gtk_radio_button_get_current_value() and gtk_radio_button_get_value().
      	Use these functions to set and get an arbitrary integer associated to
      	a GtkRadioButton in a group, like the value associated to a
      	GtkRadioAction.
      
      	* tests/testgtk.c:
      	(create_radio_buttons), (radio_toggled_cb): Exercise the new API.
      
      svn path=/trunk/; revision=18019
      1fff6b4f
  12. 01 Jun, 2007 1 commit
    • Matthias Clasen's avatar
      Add support for composited child windows. (#412882, Ryan Lortie) · 885ba046
      Matthias Clasen authored
      2007-06-01  Matthias Clasen  <mclasen@redhat.com>
      
              Add support for composited child windows.  (#412882, Ryan Lortie)
      
              * gdk/gdk.symbols:
              * gdk/gdkdisplay.h:
              * gdk/gdkinternals.h:
              * gdk/gdkwindow.[hc]: Add gdk_display_supports_composite() and
              gdk_window_set_composited().
      
              * gdk/x11/gdkevents-x11.c:
              * gdk/x11/gdkdisplay-x11.[hc]:
              * gdk/x11/gdkwindow-x11.[hc]: X11 implementation.
      
              * gdk/win32/gdkdisplay-win32.c:
              * gdk/win32/gdkwindow-win32.c: Dummy win32 implementration.
      
              * gdk/quartz/gdkdisplay-quartz.c:
              * gdk/quartz/gdkwindow-quartz.c: Dummy Quartz implementation.
      
              * gdk/directfb/gdkdisplay-directfb.c:
              * gdk/directfb/gdkwindow-directfb.c: Dummy DirectFB implementation.
      
              * tests/testgtk.c: Add a "composited window" test.
      
      
      svn path=/trunk/; revision=18004
      885ba046
  13. 03 May, 2007 1 commit
  14. 08 Feb, 2007 1 commit
    • Tim Janik's avatar
      applied patch from Xan Lopez which adds GTK_BUTTONBOX_CENTER to · 8a8202ce
      Tim Janik authored
      Thu Feb  8 13:07:08 2007  Tim Janik  <timj@imendio.com>
      
              * applied patch from Xan Lopez which adds GTK_BUTTONBOX_CENTER to
              GtkButtonBox (bug #336159).
      
              * gtk/gtkenums.h:
              * gtk/gtkvbbox.c, gtk/gtkhbbox.c, gtk/gtkbbox.c:
              support GTK_BUTTONBOX_CENTER.
      
              * tests/testbbox.c: new button box test, which allows testing of 
              the various button box properties.
      
              * tests/testgtk.c: added GTK_BUTTONBOX_CENTER. to button box test.
      
      
      
      svn path=/trunk/; revision=17276
      8a8202ce
  15. 19 Sep, 2006 1 commit
    • Tim Janik's avatar
      added GtkArrow::arrow-scaling style property to control the arrow/border · fb12bbce
      Tim Janik authored
      Tue Sep 19 17:00:04 2006  Tim Janik  <timj@imendio.com>
      
              * gtk/gtkarrow.c: added GtkArrow::arrow-scaling style property to
              control the arrow/border ratio within the allocation.
      
              * tests/testgtk.c: added a GtkArrow to handle box test.
      
              * tests/testgtkrc: test ::arrow-scaling property.
      fb12bbce
  16. 11 Sep, 2006 1 commit
    • Tim Janik's avatar
      fixed compiler warnings. · 2c0d76bf
      Tim Janik authored
      Mon Sep 11 14:22:39 2006  Tim Janik  <timj@imendio.com>
      
              * tests/testgtk.c: fixed compiler warnings.
      2c0d76bf
  17. 29 Aug, 2006 1 commit
  18. 25 Apr, 2006 1 commit
    • Søren Sandmann's avatar
      Create 'composited' label. · b9d1a034
      Søren Sandmann authored
      Tue Apr 25 10:25:28 2006  Søren Sandmann  <sandmann@redhat.com>
      
      	* tests/testgtk.c (create_alpha_window): Create 'composited' label.
      
      	* tests/testgtk.c (on_composited_changed): New function, change
      	the label to say whether the screen is composited or not.
      
      	* gtk/gtkwindow.c (gtk_window_on_composited_changed): When
      	composited status change, invalidate the window and propagate the signal;.
      
      	* gtk/gtkwindow.c (gtk_window_map): Set the appropriate type hint
      	if reset_type_hint is TRUE.
      
      	* gtk/gtkwindow.c (gtk_window_set_type_hint): If hint is one of
      	the old hints, store a shadow copy in the public window->type_hint
      	bitfield, otherwise set this field to normal. Set the private
      	field to the type hint.
      
      	* gtk/gtkwindow.c (gtk_window_init): Initialize priv->type_hint.
      
      	* gtk/gtkwindow.c (struct _GtkWindowPrivate): New field
      	"reset_type_hint" indicating whether the type hint needs to be
      	reset. New field type_hint containing a GdkWindowTypeHint.
      
      	* gtk/gtkwidget.c (propagate_composited_changed): New function to
      	propagate changes in composited status.
      	(gtk_widget_class_init): Add composited_changed signal.
      
      	* gtk/gtkwidget.h (struct _GtkWidgetClass): New signal composited-changed.
      
      	* gtk/gtkwidget.c (gtk_widget_is_composited): New function.
      
      	* gtk/gtktooltips.c (gtk_tooltips_draw_tips): Set transient for.
      
      	* gtk/gtktooltips.c (gtk_tooltips_force_window): Set the type hint
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Compute whether
      	the item belongs to a menubar. Set the type_hint appropriately
      	depending on the outcome.
      
      	* gtk/gtkmenu.c (gtk_menu_position): Set the default type hint here.
      
      	* gtk/gtkmenu.c (gtk_menu_attach_to_widget): connect to hierarchy
      	changed on the attach widget.
      
      	* gtk/gtkmenu.c (attach_widget_hierarchy_changed): New function to
      	set the transient_for property for menus.
      
      	* gtk/gtkdnd.c (set_icon_stock_pixbuf): Set the appropriate type hint.
      
      	* gtk/gtkcombo.c (gtk_combo_popup_list): Make the popup window
      	transient for the toplevel.
      
      	* gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Set
      	transient-for, for the popup window.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): Support for
      	new window types.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_type_hint): Add support
      	for new window types.
      
      	* gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change):
      	New function called whenever the compositing manager comes and goes.
      
      	* gdk/x11/gdkscreen-x11.c (gdk_screen_is_composited): New function.
      
      	* gdk/x11/gdkscreen-x11.c
      	(_gdk_x11_screen_request_cm_notification, make_cm_atom,
      	check_is_composited): New functions
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
      	_gdk_x11_screen_process_owner_change when an
      	XFixesSelectionNotifyEvent is received.
      
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Call
      	_gdk_x11_screen_request_cm_notification() on all screens.
      
      	* gdk/quartz/gdkscreen-quartz.c (gdk_screen_is_composited): Dummy
      	implementation.
      
      	* gdk/gdkscreen.c (gdk_screen_class_init): New signal,
      	'composited-changed'.
      
      	* gdk/gdkwindow.h: Add new EWMH window types.
      
      	* gdk/win32/gdkscreen-win32.c (gdk_screen_is_composited)
      b9d1a034
  19. 11 Jan, 2006 1 commit
  20. 09 Sep, 2005 1 commit
  21. 06 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Add tests for extra virtual modifiers. · 244d41b9
      Matthias Clasen authored
      2005-09-06  Matthias Clasen  <mclasen@redhat.com>
      
      	* tests/testgtk.c (create_key_lookup): Add tests for extra virtual
      	modifiers.
      
      	* gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Try to match both against
      	Mod2 - Mod5 and against Super, Hyper, Meta.
      
      	* gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
      	* gtk/gtkaccelgroup.c (gtk_accelerator_parse)
      	(gtk_accelerator_name): Support Super, Hyper Meta and Mod2 - Mod5.
      244d41b9
  22. 15 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Add two new settings, gtk-cursor-theme-name and gtk-cursor-theme-size to · df517cb1
      Matthias Clasen authored
      2005-06-15  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtksettings.c: Add two new settings,
      	gtk-cursor-theme-name and gtk-cursor-theme-size to
      	control the cursor theme.
      
      	* gdk/x11/gdkevents-x11.c: Add two new X settings,
      	Gtk/CursorThemeName and Gtk/CursorThemeSize, and map
      	these to the gtk settings.
      
      	* tests/testgtk.c (create_cursors): Add a cursor theme
      	testcase.
      df517cb1
  23. 12 May, 2005 1 commit
  24. 09 May, 2005 1 commit
    • Owen Taylor's avatar
      Fill in unused bits so they can be used for the depth-32 target case. · 485fd851
      Owen Taylor authored
      2005-05-09  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
              Fill in unused bits so they can be used for the depth-32 target case.
              Rewrite so that that gives a marginal speedup rather than a
              marginal slowdown. (on x86)
      
              * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
              Add gdk_screen_get_rgba_colormap/visual to get a visual for
              windows with an alpha channel, if one exists.
      
              * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
              Stub out gdk_screen_get_rgba_colormap/visual.
      
              * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
              "unused" wasn't right for depth == 32, since it depended on
              shifting by 32.
      
              * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
              Keith Packard,
              http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
      
              * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
              Implement again, without using Xft.
      
              * tests/testgtk.c: Add a test for windows with an alpha channel.
      485fd851
  25. 03 Apr, 2005 1 commit
    • Hans Breuer's avatar
      [merged from gtk-2-6 branch] let dash_offset shift the start of the line · 0ba6aed7
      Hans Breuer authored
      2005-04-03  Hans Breuer  <hans@breuer.org>
      
      	[merged from gtk-2-6 branch]
      	* gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
      	the line pattern not the start of the line. Fixes bug #171641.
      
      	* gtk/makefile.msc.in : follow .symbols changes
      
      	* gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
      	dynamically. (It is not available in _WIN_VER <= 0x0400)
      
      	* gdk/win32/makefile.msc : removed gdkpango-win32.obj
      
      	* gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
      
      	[also applied to gtk-2-6 branch]
      	* gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
      
      	* gdk/makefile.msc.in : add gtkmnemonichash.obj
      
      	* test/testgtk.c(set_parent_signal) : use g_message instead of
      	g_print to keep the 'testgtk --bench=all' output clean
      0ba6aed7
  26. 21 Nov, 2004 1 commit
    • Owen Taylor's avatar
      Add GdkPangoRenderer, a subclass of PangoRenderer targeting GDK drawables. · 3d737ee8
      Owen Taylor authored
      Sat Nov 20 15:13:51 2004  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkpango.[ch]: Add GdkPangoRenderer, a subclass of
      	PangoRenderer targeting GDK drawables. Use to implement the old
      	gdk_draw_layout() and friends.
      
      	* gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkwindow.c gdk/gdkpixmap.c:
      	Add gdk_draw_glyphs_transformed() gdk_draw_trapezoids() and
      	the corresponding members of GdkDrawableClass. Add a fallback
      	implementation of gdk_draw_trapezoids() in terms of pixbufs.
      
      	* gdk/gdkwindowing.h gdk/x11/gdkg-x11.h: Add
      	_gdk_windowing_gc_get_foreground() to enable the fallback
      	trapezoid implementation.
      
      	* gdk/x11/gdkdrawable-x11.c gdk/x11/gdkdisplay-x11.h: Implement
      	draw_glyph_transformed,	draw_trapezoids.
      
      	* gdk/x11/gdkdrawable-x11.[ch]: Add
      	_gdk_x11_drawable_draw_xtrapezoids, _gdk_x11_drawable_draw_xft_glyphs
      	for use of GdkX11Renderer.
      
      	* gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Implement
      	GDK_TILED, GDK_STIPPLED, GDK_OPAQUE_STIPPLED in the RENDER codepath.
      
      	* gdk/gdkpango-x11.c: Add GdkX11Renderer... a subclass of
      	PangoXftRenderer that does tiles/stipples and fallback rendering
      	of trapezoids without the RENDER extension.
      
      	* gdk/gdkpango-x11.c gdk/x11/gdkscreen-x11.[ch] _gdk_x11_renderer_get:
      	Add _gdk_x11_renderer_get() to get a singleton GdkX11Renderer
      	for the screen.
      
      	* gdk/x11/gdkdrawable-x11.c (get_impl_drawable): Fix a None/NULL
      	confusion.
      
      	* gtk/gtklabel.[ch] gtk/gtk.symbols: Add gtk_label_set/get_angle(),
      	and an ::angle property.
      
      	* gtk/gtklabel.c: Remove #if 0'd dead code gtk_label_paint_word().
      
      	* gtk/gtktextdisplay.c: Switch to using a GtkTextRenderer subclass
      	of GdkPangoRenderer for drawing.
      
      	* gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Switch to using
      	gtk_attr_shape_new_with_data() to store backreferences to
      	embedded pixmaps and widgets. Leave line_display->shaped_objects
      	around for backwords compatibility.
      
      	* gdk/gdkpango.[ch] (gdk_pango_context_set_colormap): Describe
      	as deprecated, remove implementation.
      
      	* gtk/gtkwidget.c (gtk_widget_create_pango_context): Remove
      	call to gdk_pango_context_set_colormap.
      
      	* demos/gtk-demo/Makefile.am demos/gtk-demo/rotated_text.c: Add
      	a demo showing drawing rotated text.
      
      	* tests/testgtk.c: Add a rotated-label test, and also a rotated
      	drawing test (differs from demos/gtk-demo/rotated_text by also
      	using a tile)
      3d737ee8
  27. 19 Nov, 2004 1 commit
    • Manish Singh's avatar
      modules/engines/ms-windows/msw_rc_style.c · 54b45a19
      Manish Singh authored
      Fri Nov 19 15:18:51 2004  Manish Singh  <yosh@gimp.org>
      
              * modules/engines/ms-windows/msw_rc_style.c
              * modules/engines/ms-windows/msw_style.c
              * modules/engines/ms-windows/msw_theme_main.c
              * modules/engines/pixbuf/pixbuf-main.c
              * modules/engines/pixbuf/pixbuf-rc-style.c
              * modules/input/gtkimcontextime.c
              * modules/input/gtkimcontextxim.c
              * modules/input/imam-et.c
              * modules/input/imcedilla.c
              * modules/input/imcyrillic-translit.c
              * modules/input/iminuktitut.c
              * modules/input/imipa.c
              * modules/input/imthai-broken.c
              * modules/input/imti-er.c
              * modules/input/imti-et.c
              * modules/input/imviqr.c
              * tests/prop-editor.c
              * tests/testentrycompletion.c
              * tests/testfilechooser.c
              * tests/testmerge.c
              * tests/testtoolbar.c
              * tests/testtreecolumns.c
              * tests/testtreeview.c: get rid of unnecessary casts.
      
              * tests/testgtk.c (create_labels): add GTK_LABEL() casts for
              gtk_label_set_ellipsize() calls.
      
              * tests/testicontheme.c (main): remove unused pixbuf variable.
      54b45a19
  28. 09 Nov, 2004 1 commit
  29. 28 Oct, 2004 1 commit
  30. 15 Mar, 2004 1 commit
    • Owen Taylor's avatar
      #136672, reported by Christian Persch; fixes based on a patch by Soeren · 3895bea4
      Owen Taylor authored
      Sun Mar 14 19:26:48 2004  Owen Taylor  <otaylor@redhat.com>
      
              #136672, reported by Christian Persch; fixes based
              on a patch by Soeren Sandmann.
      
              * gtk/gtkmenu.c: Change the handling of mixed gridded
              and non-gridded menu items; the old method was causing
              major performance problems even with the "avoid relayout
              on destruction" hack put in recently.
      
              Now we first lay out the gridded items and then put the
              non-gridded items into empty rows / after the gridded items.
              Layout is done in a central menu_shell_ensure_layout(). Also
              avoid emitting property notifications when we initially
              insert or attach items.
      
              * gtk/gtkmenushell.[ch] gtk/gtkmenu.c: Stop setting the
              unused menu_shell->menu_flag, and document it as unused
              in the header.
      
              * tests/testactions.c: Add a test of creating/removing
              lots of items.
      
              * test/testgtk.c: Add some more cruft to the menu test.
      3895bea4
  31. 11 Mar, 2004 1 commit
  32. 06 Mar, 2004 1 commit
  33. 02 Mar, 2004 1 commit
  34. 04 Feb, 2004 1 commit
    • Federico Mena Quintero's avatar
      Fix #59707. · 9a98cd8f
      Federico Mena Quintero authored
      2004-02-04  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix #59707.
      
      	* gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
      	the focus chain.
      	(gtk_label_button_press): Fix prototype.
      	(gtk_label_button_release): Likewise.
      	(gtk_label_motion): Likewise.
      
      	* tests/testgtk.c (create_message_dialog): For the dialog with
      	only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
      9a98cd8f
  35. 28 Jan, 2004 1 commit
    • Hans Breuer's avatar
      new GTK_STOCK_NETWORK ... gtk/gtkstock.[hc] : ... define ... · 2d19ee19
      Hans Breuer authored
      2004-01-28  Hans Breuer  <hans@breuer.org>
      
      	* gtk/stock-icons/stock_network_(16|24).png : new GTK_STOCK_NETWORK ...
      	  gtk/gtkstock.[hc] : ... define ...
      	  gtk/gtkiconfactory.c : ... register ...
      	  gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : ... compile ...
      	* gtk/gtkfilesystemwin32.c : ... and use. Also adapt to recent
      	IFace changes.
      
      	* gtk/gtk.def : added a bunch of new exported symbols
      
      	* tests/testfilechooser.c (no_backup_files_filter) : don't crash
      	on filter_info->display_name being NULL
      
      	* tests/testgtk.c : make testgtk --bench=all work again
      2d19ee19
  36. 18 Jan, 2004 1 commit
    • Soeren Sandmann's avatar
      Set a small size request and make the window resizable, to test · accc299d
      Soeren Sandmann authored
      Sun Jan 18 13:16:34 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* tests/testgtk.c (create_toolbar): Set a small size request and
      	make the window resizable, to test mapping/unmapping of buttons.
      
      	* gtk/gtktoolbar.c (gtk_toolbar_remove_content,
      	gtk_toolbar_insert_tool_item): remove these functions.
      
      	* gtk/gtktoolbar.c (gtk_toolbar_show_all,
      	toolbar_content_show_all, gtk_toolbar_hide_all,
      	toolbar_content_hide_all): New functions.
      
      	Ignore show_all/hide_all for buttons created in compatibility mode.
      
      	* gtk/gtktoolbar.c (internal_insert_element, gtk_toolbar_show_all,
      	gtk_toolbar_hide_all): Make sure buttons are ignored by
      	gtk_toolbar_show_all() and gtk_toolbar_hide_all().
      
      	* gtk/gtktoolbar.c: s/regular_widget/compatibility/g
      
      	* gtk/gtktoolbar.c (struct _ToolbarContent): Allocate
      	GtkToolbarChild inline. Get rid of GtkToolbarChildSpace.
      
      	* gtk/gtktoolbar.c (toolbar_content_expose): Fix bug where widget
      	could become NULL.
      
      	* gtk/gtktoolbar.c (gtk_toolbar_add): Append new tool items
      	instead of prepending them.
      
      	* gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Use the same
      	'elapsed' for all items.
      
      	* gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Turn booleans
      	into bitfields.
      
      	* gtk/gtktoolbar.c: Many formatting fixes
      accc299d
  37. 11 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Add table menu tests. · 6f81c10a
      Matthias Clasen authored
      2003-09-11  Matthias Clasen  <maclas@gmx.de>
      
      	* tests/testgtk.c: Add table menu tests.
      
      	* gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the
      	GtkMenuPrivate struct itself. Pointed out by valgrind.
      
      	* gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up
      	properly.  (#121998)
      6f81c10a
  38. 08 Sep, 2003 1 commit