1. 16 Mar, 2005 1 commit
  2. 08 Mar, 2005 1 commit
  3. 25 Feb, 2005 1 commit
  4. 13 Jan, 2005 1 commit
  5. 04 Jan, 2005 1 commit
  6. 05 Dec, 2004 1 commit
    • Tor Lillqvist's avatar
      Use g_fopen(). · ce02e5ca
      Tor Lillqvist authored
      2004-12-05  Tor Lillqvist  <tml@iki.fi>
      
      	* demos/gtk-demo/main.c (load_file): Use g_fopen().
      
      	* demos/gtk-demo/images.c (progressive_timeout): Use
      	g_fopen(). Open png file in binary mode.
      ce02e5ca
  7. 21 Nov, 2004 2 commits
    • Hans Breuer's avatar
      updated · 6a3a2cd3
      Hans Breuer authored
      2004-11-21  Hans Breuer  <hans@breuer.org>
      
      	* gdk/makefile.msc.in gtk/stock-icons/makefile.msc
      	  gtk/makefile.msc.in demos/gtk-demo/makefile.msc.in : updated
      
      	* gdk/win32/gdkdrawable-win32.c : implement gdk_win32_draw_glyphs_transformed()
      	* gdk/win32/gdkgc-win32.c : implement _gdk_windowing_gc_get_foreground()
      
      	* demos/gtk-demo/rotated_text.c : use G_PI
      6a3a2cd3
    • 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
  8. 16 Nov, 2004 1 commit
  9. 28 Oct, 2004 1 commit
  10. 26 Oct, 2004 1 commit
    • Carlos Garnacho's avatar
      Fix for #118764, David Bordoley: · d5ab4594
      Carlos Garnacho authored
      2004-10-25  Carlos Garnacho Parro  <carlosg@gnome.org>
      
      	Fix for #118764, David Bordoley:
      
      	* gtk/gtkmessagedialog.[ch]
      	(gtk_message_dialog_format_secondary_text),
      	(gtk_message_dialog_format_secondary_format): API additions to
      	create HIG-like dialogs
      
      	* demos/gtk-demo/dialog.c: Use the new API in the example
      
      	* docs/reference/gtk/gtk-sections.txt:
      	* docs/reference/gtk/tmpl/gtkmessagedialog.sgml: documented API
      	additions
      d5ab4594
  11. 22 Sep, 2004 1 commit
    • Matthias Clasen's avatar
      Don't leak the frame pixbuf. · ac038c3e
      Matthias Clasen authored
      Wed Sep 22 00:52:44 2004  Matthias Clasen  <mclasen@redhat.com>
      
      	* demos/gtk-demo/pixbufs.c (do_pixbufs): Don't leak the frame
      	pixbuf.
      ac038c3e
  12. 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
  13. 13 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Adjust to GtkAboutDialog API changes. · ff8c35e5
      Matthias Clasen authored
      Thu Aug 12 21:02:57 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* demos/gtk-demo/appwindow.c (about_cb): Adjust to GtkAboutDialog API changes.
      
      	* gtk/gtkaboutdialog.h:
      	* gtk/gtkaboutdialog.c (gtk_about_dialog_set_email_hook):
      	(gtk_about_dialog_set_url_hook): Add callback data and destroy notify
      	for language bindings.  (#149999, Olivier Andrieu)
      ff8c35e5
  14. 06 Aug, 2004 1 commit
    • Hans Breuer's avatar
      make it compile and more similar to the X11 implementation [backward · 74051776
      Hans Breuer authored
      2004-08-06  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkwindow-win32.c : make it compile and more
      	similar to the X11 implementation [backward compatibility
      	for GDK_WINDOW_TEMP, GDK_INPUT_ONLY (fixes bug #148702),
      	use the *screen* function variants, dont reparent already
      	destroyed]
      	(get_visible_region) : take the win32 part into account
      	(_gdk_windowing_window_destroy) : remove from handle table
      
      	* gdk/win32/gdkdisplay-win32.c : added
      	gdk_display_(request|supports)_selection_notification ()
      	with a currently mostly pointless implementation ;-)
      
      	* gtk/gtkfilesystemwin32.c (*_to_path) : same changes as on *NIX,
      	plugs memory leak
      	(gtk_file_system_win32_render_icon) : use new GTK_STOCK_DIRECTORY
      
      	* gtk/makefile.msc.in demos/gtk-demo/makefile.msc.in
      	  gtk/stock-icons/makefile.msc tests/makefile.msc : updated
      
      	* gdk/gdk.def gtk/gtk.def : updated externals
      
      	* tests/testiconview.c : remove unneeded dirent.h inclusion
      74051776
  15. 29 Jul, 2004 1 commit
    • Anders Carlsson's avatar
      Add clipboard demo. · 705a7066
      Anders Carlsson authored
      2004-07-29  Anders Carlsson  <andersca@gnome.org>
      
      	* demos/gtk-demo/Makefile.am:
      	* demos/gtk-demo/clipboard.c: (copy_button_clicked),
      	(paste_received), (paste_button_clicked), (do_clipboard):
      	Add clipboard demo.
      705a7066
  16. 27 Jul, 2004 1 commit
    • Anders Carlsson's avatar
      Add gdk_draw_rectangle_alpha_libgtk_only which uses XRenderFillRectangle · 564ab37a
      Anders Carlsson authored
      2004-07-27  Anders Carlsson  <andersca@gnome.org>
      
      	* demos/gtk-demo/iconview.c: (do_iconview):
      	* gdk/gdkdrawable.h:
      	* gdk/linux-fb/gdkdrawable-fb2.c:
      	(gdk_draw_rectangle_alpha_libgtk_only):
      	* gdk/win32/gdkdrawable-win32.c:
      	(gdk_draw_rectangle_alpha_libgtk_only):
      	* gdk/x11/gdkdrawable-x11.c: (gdk_x11_draw_image),
      	(get_impl_drawable), (gdk_x11_draw_pixbuf),
      	(gdk_draw_rectangle_alpha_libgtk_only):
      	Add gdk_draw_rectangle_alpha_libgtk_only which uses
      	XRenderFillRectangle on X11. It's stubbed out on the
      	Win32 and fb backends.
      
      	* gtk/gtkiconview.c:
      	(gtk_icon_view_paint_rubberband):
      	Use gdk_draw_rectangle_alpha_libgtk_only here.
      564ab37a
  17. 21 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Remove trailing commas from enumerations. (#148035) · 44663458
      Matthias Clasen authored
      Tue Jul 20 22:26:29 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkfilechooserutils.h:
      	* gtk/gtktoolbutton.c:
      	* gtk/gtktoolbar.c:
      	* gtk/gtkicontheme.c:
      	* gtk/gtkcalendar.c:
      	* demos/gtk-demo/ui_manager.c:
      	* demos/gtk-demo/appwindow.c: Remove trailing commas
      	from enumerations.  (#148035)
      44663458
  18. 12 Jul, 2004 1 commit
  19. 04 Jul, 2004 1 commit
    • Anders Carlsson's avatar
      Add a simple file browser based on the icon view. · 57f0d6a2
      Anders Carlsson authored
      2004-07-04  Anders Carlsson  <andersca@gnome.org>
      
      	* demos/gtk-demo/Makefile.am:
      	* demos/gtk-demo/gnome-fs-directory.png:
      	* demos/gtk-demo/gnome-fs-regular.png:
      	* demos/gtk-demo/iconview.c: (load_pixbufs), (fill_store),
      	(sort_func), (create_store), (item_activated), (up_clicked),
      	(home_clicked), (do_iconview):
      	Add a simple file browser based on the icon view.
      
      	* gtk/gtk.h:
      	Add gtk/gtkiconview.h
      
      	* gtk/gtkiconview.c: (gtk_icon_view_layout),
      	(gtk_icon_view_item_new), (gtk_icon_view_item_activated):
      	Fix a few bugs discovered while writing the demo.
      57f0d6a2
  20. 08 May, 2004 1 commit
    • Hans Breuer's avatar
      finally also create the correct mask for 'pseudo mime' icons · 805abff3
      Hans Breuer authored
      2004-05-08  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkfilesystemwin32.c (extract_icon) : finally also
      	create the correct mask for 'pseudo mime' icons
      
      	* gdk/win32/gdkwindow-win32.c(show_window_internal) : also
      	take focus_on_map into account
      
      	* gtk/gtkselection.c : g_message() only with DEBUG_SELECTION
      
      	* gtk/gtkactiongroup.c gtk/gtkcombobox.c :
      	... must return a value
      
      	* gdk/gdk.def gtk/gtk.def demos/gtk-demo/makefile.msc.in : updated
      805abff3
  21. 21 Apr, 2004 1 commit
    • Matthias Clasen's avatar
      A new demo. · 8d30ad28
      Matthias Clasen authored
      2004-04-21  Matthias Clasen  <mclasen@redhat.com>
      
      	* demos/gtk-demo/expander.c (do_expander): A new demo.
      
      	* demos/gtk-demo/Makefile.am (demos): Add expander.c.
      8d30ad28
  22. 06 Mar, 2004 1 commit
  23. 28 Feb, 2004 1 commit
  24. 13 Feb, 2004 1 commit
  25. 07 Jan, 2004 2 commits
    • Matthias Clasen's avatar
      Add entry_completion.c · 5c919e50
      Matthias Clasen authored
      Wed Jan  7 23:20:06 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* demos/gtk-demo/Makefile.am (demos): Add entry_completion.c
      
      	* demos/gtk-demo/entry_completion.c: New demo for GtkEntryCompletion
      	by Anders Carlsson  (#130464).
      5c919e50
    • 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
  26. 08 Nov, 2003 1 commit
    • Matthias Clasen's avatar
      Call the do_ functions with the toplevel as argument. · 9c0bc41a
      Matthias Clasen authored
      Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* demos/gtk-demo/main.c (row_activated_cb): Call the do_
      	functions with the toplevel as argument.
      
      	* demos/gtk-demo/geninclude.pl.in: Change the signature
      	of GDoDemoFunc to take a widget argument
      
      	* demos/gtk-demo/ui_manager.c (do_ui_manager):
      	* demos/gtk-demo/tree_store.c (do_tree_store):
      	* demos/gtk-demo/textview.c (do_textview):
      	* demos/gtk-demo/stock_browser.c (do_stock_browser):
      	* demos/gtk-demo/sizegroup.c (do_sizegroup):
      	* demos/gtk-demo/pixbufs.c (do_pixbufs):
      	* demos/gtk-demo/panes.c (do_panes):
      	* demos/gtk-demo/menus.c (do_menus):
      	* demos/gtk-demo/list_store.c (do_list_store):
      	* demos/gtk-demo/images.c (do_images):
      	* demos/gtk-demo/hypertext.c (do_hypertext):
      	* demos/gtk-demo/editable_cells.c (do_editable_cells):
      	* demos/gtk-demo/drawingarea.c (do_drawingarea):
      	* demos/gtk-demo/dialog.c (do_dialog):
      	* demos/gtk-demo/colorsel.c (do_colorsel):
      	* demos/gtk-demo/changedisplay.c (do_changedisplay):
      	* demos/gtk-demo/button_box.c (do_button_box):
      	* demos/gtk-demo/appwindow.c (do_appwindow): Take a widget
      	as argument, and make new windows or dialogs appear on the
      	same screen.  (#80388)
      9c0bc41a
  27. 27 Oct, 2003 1 commit
  28. 23 Oct, 2003 1 commit
    • Owen Taylor's avatar
      Fix some unused variables. · 3724a591
      Owen Taylor authored
      Tue Oct 21 16:12:51 2003  Owen Taylor  <otaylor@redhat.com>
      
              * demos/gtk-demo/menus.c (do_menus): Fix some unused
              variables.
      
              * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
              variable warning
      3724a591
  29. 13 Oct, 2003 1 commit
  30. 11 Oct, 2003 1 commit
  31. 10 Oct, 2003 2 commits
    • Matthias Clasen's avatar
      Replace GtkItemFactory by GtkUIManager in the intro (again). · dd548173
      Matthias Clasen authored
      Fri Oct 10 23:02:58 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager
      	in the intro (again).
      dd548173
    • Kristian Rietveld's avatar
      Deprecate. Ditto. · e6100ecd
      Kristian Rietveld authored
      Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtkcombo.h: Deprecate.
      	* gtk/gtkoptionmenu.h: Ditto.
      
      	* gtk/gtkcombobox.c (gtk_combo_box_size_request),
      	(gtk_combo_box_size_allocate): Rework, things behave better now. Still
      	needs some work on requesting enough size when taking the items in
      	the list into account.
      
      	* gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
      	deprecated" guards.
      	* gtk/gtkinputdialog.c: ditto.
      	* gtk/gtkitemfactory.c: ditto.
      	* gtk/gtkoptionmenu.c: ditto.
      
      	* demos/gtk-demo/menus.c: remove the option menu.
      	* demos/gtk-demo/sizegroup.c: replace the option menus with
      	GtkComboBox.
      	* demos/gtk-demo/textview.c: ditto.
      	(A general GtkComboBox demo will be added later on).
      e6100ecd
  32. 07 Oct, 2003 1 commit
    • Matthias Clasen's avatar
      New callback to propertly report radio actions. · cc46d181
      Matthias Clasen authored
      Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* demos/gtk-demo/ui_manager.c (activate_radio_action): New
      	callback to propertly report radio actions.
      
      	* demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
      cc46d181
  33. 26 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Turn off GTK_DISABLE_DEPRECATED, since this test uses the · e4507b60
      Matthias Clasen authored
      2003-09-27  Matthias Clasen  <maclas@gmx.de>
      
      	* tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
      	this test uses the soon-to-be-deprecated GtkItemFactory.
      
      	* demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
      	remove item_factory.c
      
      	* demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c
      	using GtkUIManager instead of GtkItemFactory.
      e4507b60
  34. 25 Sep, 2003 1 commit
    • Tor Lillqvist's avatar
      Don't use hardcoded DEMOCODEDIR on Windows. · 4a2de86c
      Tor Lillqvist authored
      2003-09-25  Tor Lillqvist  <tml@iki.fi>
      
      	* demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.
      
      2003-09-21  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkevents-win32.c (handle_wm_paint): New
      	function. Code split out from gdk_event_translate(). Needed
      	because gdk_event_get_graphics_expose() couldn't do anything
      	sensible otherwise. (Not that I think graphics exposes work anyway
      	in gdk/win32, but at least now the code could work.)
      
      	(gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
      	gdk_event_translate(), which couldn't have worked as it doesn't
      	take any pre-allocated GdkEvent parameter any longer.
      
      	(gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
      	GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)
      4a2de86c
  35. 23 Sep, 2003 1 commit
  36. 15 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Add value parameter to allow setting the currently selected group member · caf380c7
      Matthias Clasen authored
      2003-09-15  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
      	(gtk_action_group_add_radio_actions_full): Add value parameter to allow
      	setting the currently selected group member before connecting signals.
      	(GtkToggleActionEntry): Separate struct for constructing toggle actions,
      	including a boolean to initialize the action state before connecting
      	signals.
      	(gtk_action_group_add_toggle_actions):
      	(gtk_action_group_add_toggle_actions_full): New functions to construct
      	toggle actions from an array of GtkToggleActionEntries.
      
      	* demos/gtk-demo/appwindow.c:
      	* tests/testactions.c:
      	* tests/testmerge.c: Adjust to new action group API.
      
      	* gtk/gtk-sections.txt: Add gtk_action_group_add_toggle_actions[_full].
      caf380c7
  37. 27 Aug, 2003 1 commit
    • Matthias Clasen's avatar
      Change the XML format: <Root> element is replaced by <ui>, <menu> element · cbc20c4d
      Matthias Clasen authored
      2003-08-28  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkuimanager.c: Change the XML format:
      	<Root> element is replaced by <ui>,
      	<menu> element is replaced by <menubar>,
      	<submenu> element is replaced by <menu>,
      	<dockitem> element is replaced by <toolbar>,
      	<popups> element is gone,
      	verb attribute is replaced by action,
      	name defaults to action or the element name.
      
      	* gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by GtkActionEntry
      	and GtkRadioActionEntry. GtkActionEntry is simplified by removing
      	the user_data, entry_type and extra_data fields, GtkRadioActionEntry is
      	further simplified by removing the callback. The user_data can now be
      	specified as an argument to gtk_action_group_add_actions(). There is
      	a new method gtk_action_group_add_radio_actions(), which is similar
      	to gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
      	and a callback parameter in addition to the user_data. The callback
      	is connected to the ::changed signal of the first group member.
      	There are _full() variants taking a GDestroyNotify of
      	gtk_action_group_add_[radio_]actions().
      
      	* gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted
      	on every member of the radio group when the active member is changed.
      	Add an integer property "value", and a getter for the value of "value"
      	on the currently active group member.
      
      	* tests/testactions.c:
      	* tests/testmerge.c:
      	* tests/merge-[123].ui:
      	* demos/gtk-demo/appwindow.c: Adjust to these changes.
      
      	* gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
      cbc20c4d