1. 02 Sep, 2011 1 commit
    • Matthias Clasen's avatar
      Formatting cleanups · 1204a850
      Matthias Clasen authored
      While we normally try to avoid whitespace fixes, the gtk-demo
      code is shown as exemplary, so it should be in good shape,
      formatting-wise.
      1204a850
  2. 31 Aug, 2011 1 commit
  3. 02 Nov, 2010 1 commit
  4. 31 Oct, 2010 1 commit
  5. 30 Oct, 2010 4 commits
  6. 22 Aug, 2010 1 commit
  7. 13 Jul, 2010 1 commit
  8. 04 Apr, 2010 1 commit
  9. 01 Mar, 2010 1 commit
  10. 06 Sep, 2007 1 commit
  11. 16 Nov, 2004 1 commit
  12. 06 Mar, 2004 1 commit
  13. 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
  14. 20 Oct, 2001 1 commit
  15. 17 Aug, 2001 1 commit
  16. 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
  17. 18 May, 2001 1 commit
    • Jonathan Blandford's avatar
      It's the worlds ugliest highlighting code!!!! The result is okay so long · 009212ad
      Jonathan Blandford authored
      Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* demos/gtk-demo/main.c (fontify): It's the worlds ugliest
      	highlighting code!!!!  The result is okay so long as you don't try
      	to stress it.  It also highlights a bug in the TextView so it's in
      	an unproportional font right now until it's fixed.
      
      	*demos/gtk-demo/*.c: Clean up code a bit to make it
      	ugly-parser(TM) friendly. (-:
      009212ad
  18. 22 Mar, 2001 1 commit
    • Havoc Pennington's avatar
      handle mnemonics in the stock item label · 6e58fd1e
      Havoc Pennington authored
      2001-03-22  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
      	the stock item label
      
      	* gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
      
      	* gtk/gtkstock.c (builtin_items): add mnemonics where missing
      
      	* demos/gtk-demo/*.c: Add mnemonics all over the place
      
      	* gtk/gtklabel.h: mark parse_uline deprecated
      6e58fd1e
  19. 16 Feb, 2001 1 commit
  20. 18 Nov, 2000 1 commit
    • Jonathan Blandford's avatar
      Changed to have the list become non-italic when the demo window is · c9e39436
      Jonathan Blandford authored
      Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
      
      	* demos/gtk-demo/main.c: Changed to have the list become
      	non-italic when the demo window is destroyed through an external
      	event (like a close button).  Doing so found three bugs in the
      	widget.
      
      	* demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
      
      	* gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
      	we actually set the cell.
      
      	* gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
      	free a leaked path.  Thanks memprof.
      c9e39436
  21. 18 Oct, 2000 1 commit