1. 28 Jun, 2015 1 commit
    • Matthias Clasen's avatar
      gtk-demo: Cosmetic changes · 609e04dd
      Matthias Clasen authored
      Clean up the code of many examples in minor ways, fix some memory
      leaks, and avoid the use of dialogs where a regular toplevel works
      just as well.
  2. 03 Oct, 2014 1 commit
  3. 23 May, 2014 1 commit
  4. 04 Dec, 2013 1 commit
  5. 18 May, 2012 1 commit
  6. 02 Mar, 2012 1 commit
  7. 01 Mar, 2012 1 commit
  8. 27 Feb, 2012 1 commit
  9. 14 Feb, 2012 1 commit
  10. 13 Jun, 2011 1 commit
  11. 12 Jun, 2011 1 commit
  12. 31 May, 2011 1 commit
  13. 04 Dec, 2010 1 commit
  14. 02 Nov, 2010 1 commit
  15. 31 Oct, 2010 1 commit
  16. 30 Oct, 2010 2 commits
  17. 26 Sep, 2010 1 commit
  18. 22 Aug, 2010 1 commit
  19. 26 Jul, 2010 1 commit
  20. 13 Jul, 2010 1 commit
  21. 04 Apr, 2010 1 commit
  22. 01 Mar, 2010 1 commit
  23. 17 Apr, 2006 1 commit
    • Matthias Clasen's avatar
      Small formatting fix. · 8782ca6a
      Matthias Clasen authored
      2006-04-17  Matthias Clasen  <mclasen@redhat.com>
      	* demos/gtk-demo/colorsel.c (expose_event_callback): Small formatting
  24. 16 Nov, 2004 1 commit
  25. 06 Mar, 2004 1 commit
  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)
  27. 30 Jan, 2003 1 commit
    • Daniel Elstner's avatar
      Explicitely draw an opaque rectangle using the background color rather · 9ca772ac
      Daniel Elstner authored
      2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
      	* gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
      	rectangle using the background color rather than relying on
      	gdk_window_clear_area(), so that the palette works properly with
      	pixmap themes.
      	* demos/gtk-demo/colorsel.c: Install an "expose_event" handler
      	to fill the drawing area in the background color.
  28. 20 Oct, 2001 1 commit
  29. 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
       	* 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
  30. 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. (-:
  31. 28 Apr, 2001 1 commit
    • Havoc Pennington's avatar
      voc Pennington <hp@redhat.com> · 7ad36413
      Havoc Pennington authored
      	* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line):
      	(gtk_text_layout_move_iter_to_next_line): fix these two for
      	invisible text, lots of other stuff still hosed.
      	* gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
      	new function, replaces the get/set palette stuff. This function
      	is intended for use by libgnomeui which should set the hook to a
      	thing which sets the palette in GConf, and we need the
      	GConf-to-xsettings proxy which will result in the change being
      	propagated back to the GTK app.
      	* gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning
      	about unusable signals that it may be because the signal has
      	* gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
      	style, otherwise gtkrc.c won't know to create a new GtkStyle for
      	(gtk_widget_modify_color_component): call
      	gtk_widget_modify_style() so the rc style will get copied.
      	(gtk_widget_modify_font): ditto
      	* gtk/gtkrc.c: make a couple variables static
      	* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
      	help button by default, since it does nothing
      	* gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
      	around with UI
      	* gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
      	so we can have tooltips
      	* gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
      	can have tooltips
      	* gdk/gdkimage.h: mark gdk_image_new_bitmap with
      	GDK_ENABLE_BROKEN, because its memory behavior is completely
      	* gtk/gtknotebook.c: remove key press handler, replace with
      	binding set, add numeric keypad support
      	* gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
      	* gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
      	* gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
      	addition to plain Delete
      	* gtk/gtktextview.c (gtk_text_view_key_press_event): accept
      	GDK_KP_Enter in addition to GDK_Return
      	* gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
      	activate on entry instead of key press
      	(gtk_font_selection_on_clist_key_press): get
      	rid of this signal handler, not needed with new font sel.
      	* gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
      	no-longer-needed emit_stop_by_name(), just return TRUE
      	* gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
      	cruft, this widget is no longer focusable.
      	* gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
      	gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
      	move_slider action signal, add binding set for vscale/hscale, in
      	the process support numeric keypad
      	* gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings;
      	make GDK_Return and GDK_KP_Enter activate the entry via
      	binding set, instead of hardcoded.