1. 01 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Intern some more strings. · 94eec042
      Matthias Clasen authored
      2005-09-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gdk/*.c: Intern some more strings.
              * gtk/gtkintl.h:
              * gtk/*.c: Define an I_() macro and use it instead of the
              bulky g_intern_static_string().
      94eec042
  2. 31 Aug, 2005 2 commits
  3. 03 Jul, 2005 1 commit
  4. 26 Mar, 2005 1 commit
  5. 22 Mar, 2005 1 commit
  6. 20 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      2005-03-20  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gdkalias.h:
      
      	* gtk/grk.symbols: Group symbols by header and source file.
      	* gtk/makegtkalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegtkalias.pl -def
      	* gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
      	this file.
      	* gtk/*.c: Include gtkalias.h after the other headers,
      	include gtkaliasdef.c at the bottom.
      	* gtk/*.h: Small cleanups.
      cca8dd63
  7. 16 Nov, 2004 2 commits
  8. 15 Nov, 2004 2 commits
  9. 09 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · 3612aee5
      Matthias Clasen authored
      Mon Aug  9 12:48:04 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Add hidden aliases for exported symbols which are
      	used internally in order to get rid of many PLT
      	entries.  (#145519, Arjan van de Ven)
      
      	* gtk/Makefile.am: Add rules to generate gtk.def and
      	from gtk.symbols, and make make check check the abi
      	with abicheck.sh.
      	(gtk_private_h_sources): Add gtkinternals.h
      	(gtk_built_private_headers): Add gtkalias.h
      	(gtk_extra_sources): Add gtk.symbols
      	(EXTRA_DIST): Add makegtkalias.pl and abicheck.sh
      
      	* gtk/gtk.symbols: New file. Definition of the GTK+ ABI.
      	The file can be processed by cpp to filter out certain
      	subsets of symbols.
      
      	* gtk/abicheck.sh: New file. Script to check the actually
      	symbols exported from libgtk-x11.2.0.so against the symbols
      	found in gtk.symbols.
      
      	* gtk/makegtkalias.pl: New file. Perl script to generate the
      	header containing the alias definitions for internally used
      	exported symbols from a list of symbols.
      
      	* gtk/gtkinternals.h: New file. An uninstalled header listing
      	symbols which must be exported for some reason and do not appear
      	in any other header.
      
      	* gtk/*.c: Include gtkalias.h
      3612aee5
  10. 03 Jun, 2004 1 commit
    • Michael Natterer's avatar
      use gtk_widget_get_child_requisition() instead of accessing · f48ad7c0
      Michael Natterer authored
      2004-06-03  Michael Natterer  <mitch@gimp.org>
      
      	* gtk/gtkimagemenuitem.c: use gtk_widget_get_child_requisition()
      	instead of accessing item->image->allocation.width/height
      	directly. Makes widgets which only have a requisition set using
      	gtk_widget_set_size_request() work and fixes bug #142789.
      f48ad7c0
  11. 06 Mar, 2004 1 commit
  12. 19 Feb, 2004 1 commit
    • Matthias Clasen's avatar
      Fixes for #82099: · add52ebb
      Matthias Clasen authored
      Thu Feb 19 23:41:06 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Fixes for #82099:
      
      	* gdk/x11/gdkevents-x11.c: Introduce new XSettings "Gtk/ButtonImages"
      	and "Gtk/MenuImages" and map them to "gtk-button-images" and
      	"gtk-menu-images".
      
      	* gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and use
      	it to set the visibility of the embedded image.
      
      	* gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
      	it to set the visibility of an embedded image.
      add52ebb
  13. 16 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog and · 07d4d314
      Matthias Clasen authored
      Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
      
      	The first part of the fix for #114351 (see also
      	gdk-pixbuf/ChangeLog and po/ChangeLog):
      
      	* gtk/gtkintl.h:
      	* gdk-pixbuf/gdk-pixbuf-i18n.h:
      	* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
      
      	* gdk/gdkdisplaymanager.c:
      	* gdk-pixbuf/gdk-pixbuf.c:
      	* modules/input/gtkimcontextxim.c:
      	* gtk/*.c:  Mark property blurbs and nicks with P_().
      
      	* po/Makefile.in.in: Add --keyword=P_ to the xgettext
      	invocation, since property blurbs and nicks are
      	now marked with P_().
      07d4d314
  14. 26 Jul, 2003 1 commit
  15. 06 Jul, 2003 1 commit
    • Soeren Sandmann's avatar
      add vertical_padding style property. · c8515b2f
      Soeren Sandmann authored
      Sat Jul  5 10:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
              * gtk/gtkmenu.c: add vertical_padding style property.
      
              * gtk/gtkmenuitem.c: add style properties toggle_spacing,
              arrow_spacing and horizontal_padding. Also center separators and
              make them a bit taller.
      
              * gtk/*menuitem.c: use new style properties.
      
              * docs/widget_geometry.txt: Add note about GtkMenuItem
      
              * gtk/gtkstyle.c
              (gtk_default_draw_vline, gtk_default_draw_hline):
              fix +/-1 errors.
      
              (gtk_default_draw_shadow): draw a black border around menus.
      
              * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
              calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
              x2 and y1, y2 respectively, not x, width and y, height).
      c8515b2f
  16. 02 Nov, 2002 1 commit
  17. 11 Oct, 2002 1 commit
  18. 05 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · 8409ada9
      Manish Singh authored
      Fri Oct  4 18:40:50 2002  Manish Singh  <yosh@gimp.org>
      
              * gtkcheckmenuitem.[ch] gtkimagemenuitem.[ch] gtkmenu.[ch]
              gtkmenubar.[ch] gtkmenuitem.[ch] gtkmenushell.[ch]
              gtkradiomenuitem.[ch]: Deprecation cleanup
      8409ada9
  19. 03 Mar, 2002 1 commit
  20. 30 Jan, 2002 2 commits
  21. 16 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Make Menu items NO_WINDOW widgets. · 1431d765
      Owen Taylor authored
      Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
      	gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
      	NO_WINDOW widgets.
      
      	* gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
      	cleanup.
      
      	* gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
      	we are drawing in a window when drawing the paned handle.
      1431d765
  22. 28 Oct, 2001 1 commit
    • Matthias Clasen's avatar
      Documentation updates. · c27900c3
      Matthias Clasen authored
              * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
              gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
              gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
      
              * docs/reference/gtk/tmpl/gtkmenuitem.sgml,
              docs/reference/gtk/tmpl/gtkmenu.sgml,
              docs/reference/gtk/tmpl/gtkmenushell.sgml,
              docs/reference/gtk/tmpl/gtkcontainer.sgml,
              docs/reference/gtk/gtk-sections.txt: Updates.
      c27900c3
  23. 19 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Enforce the widget/child realization/mapping invariants. · aa49527f
      Owen Taylor authored
      Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
      	the widget/child realization/mapping invariants.
      
      	* gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions
      	gtk_widget_[get/set]_child_visible() to control
      	whether visible children of a mapped window are
      	mapped.
      
      	* docs/widget_system.txt: Updated for changes in
      	container contract, and addition of GTK_CHILD_VISIBLE.
      
      	* gtk/gtkcontainer.c: Add generic map()/unmap()
      	functions that work for almost all containers.
      
      	* gtk/gtknotebook.c gtk/gtkpacker.c: Use
      	gtk_widget_set_child_visible() where necessary.
      
      	* gtk/*.c: Remove excess map(), unmap(), and
      	realization/mapping invariant enforcing code
      	from many containers.
      aa49527f
  24. 18 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Patch from Matthias Clasen to remove remove all instances of · 4e2b60ac
      Owen Taylor authored
      Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/*.c: Patch from Matthias Clasen to remove remove
      	all instances of g_return_if_fail (foo != NULL); that are
      	immediately before a g_return_if_fail (GTK_IS_FOO (foo));
      	since the second check catches the NULL anyways.
      4e2b60ac
  25. 05 Jun, 2001 2 commits
    • Alexander Larsson's avatar
      Don't crash when the properties window is destroyed. · 56984ab2
      Alexander Larsson authored
      2001-06-05  Alex Larsson  <alexl@redhat.com>
      
      	* tests/testgtk.c (destroy_properties):
      	Don't crash when the properties window is destroyed.
      
      	* gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
      	Use with_mnemonics to handle the case of stock items with
      	underscores in them.
      56984ab2
    • Havoc Pennington's avatar
      Use new mnemonic convenience functions · 8fd5c30b
      Havoc Pennington authored
      2001-06-05  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkcolorsel.c: Use new mnemonic convenience functions
      
      	Applying patch from Jeff Franks, with function docs added.
      
      	* gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
      	remove call to set_mnemonic_widget, change docs a bit.
      
      	* gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
      	new function
      
      	* gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
      	new function
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
      
      	* gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
      	function
      	(gtk_radio_button_new_with_mnemonic_from_widget): new function
      
      	* gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
      	new function
      
      	* gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
      	function
      
      	* gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on
      	auto-selection of mnemonic widget.
      8fd5c30b
  26. 18 May, 2001 1 commit
    • Martin Baulig's avatar
      Renamed gtk_image_menu_item_add_icon() to gtk_image_menu_item_set_icon() · 60530b8a
      Martin Baulig authored
      2001-04-28  Martin Baulig  <baulig@suse.de>
      
      	* gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
      	to gtk_image_menu_item_set_icon() and made it work if there's already
      	an image.
      	(gtk_image_menu_item_new): This function doesn't take any arguments anymore.
      	(gtk_image_menu_item_new_with_label): New function.
      60530b8a
  27. 21 Mar, 2001 1 commit
  28. 09 Mar, 2001 1 commit
    • Alexander Larsson's avatar
      Document expose event->region change and that gtk_widget_event doesn't · e7d4a7f9
      Alexander Larsson authored
      2001-03-09  Alexander Larsson  <alexl@redhat.com>
      
      	* docs/Changes-2.0.txt:
      	Document expose event->region change and that gtk_widget_event
      	doesn't allow passing expose events.
      
      	* gdk/gdkevents.h:
      	Add region to expose event.
      
      	* gdk/gdkevents.c:
      	Handle event->region in gdk_event_copy() and gdk_event_free().
      
      	* gdk/gdkwindow.c (gdk_window_process_updates_internal):
      	Generate expose_event->region when creating expose events.
      
      	* gdk/x11/gdkevents-x11.c:
      	Generate expose events with regions when translating X events.
      
      	* gtk/gtkcontainer.[ch]:
      	Default expose handler that propagates expose events to NO_WINDOW
      	children. New function gtk_container_propagate_expose()
      
      	* gtk/gtkwidget.[ch]:
      	Moved gtk_widget_event implementation to gtk_widget_event_internal.
      	gtk_widget_event calls gtk_widget_event_internal but doesn't allow
      	expose events. New function gtk_widget_send_expose() to send expose
      	events. New function gtk_widget_region_intersect() to calculate
      	window/region intersections.
      
      	* gtk/gtkmain.c (gtk_main_do_event):
      	Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
      	Use gtk_widget_send_expose() to send expose events.
      
      	* gtk/gtkbin.c:
      	* gtk/gtkbox.c:
      	* gtk/gtkfixed.c:
      	* gtk/gtkimagemenuitem.c:
      	* gtk/gtklist.c:
      	* gtk/gtkpacker.c:
      	* gtk/gtktable.c:
      	* gtk/gtktree.c:
      	Remove expose handler, using the default container implementation
      	instead.
      
      	* gtk/gtkbutton.c:
      	* gtk/gtkcheckbutton.c:
      	* gtk/gtkeventbox.c:
      	* gtk/gtkfixed.c:
      	* gtk/gtkhandlebox.c:
      	* gtk/gtklayout.c:
      	* gtk/gtklistitem.c:
      	* gtk/gtkmenu.c:
      	* gtk/gtkmenubar.c:
      	* gtk/gtkmenuitem.c:
      	* gtk/gtknotebook.c:
      	* gtk/gtkoptionmenu.c:
      	* gtk/gtkpaned.c:
      	* gtk/gtkscrolledwindow.c:
      	* gtk/gtktogglebutton.c:
      	* gtk/gtktoolbar.c:
      	* gtk/gtktreeitem.c:
      	* gtk/gtkviewport.c:
      	Chain expose handler to parent class handler. Use
      	gtk_container_propagate_expose() to propagate exposes.
      
      	* gtk/gtkclist.c (check_exposures):
      	* gtk/gtktext.c (process_exposes):
      	Use gtk_widget_send_expose instead of gtk_widget_event.
      e7d4a7f9
  29. 07 Mar, 2001 1 commit
    • Tim Janik's avatar
      marshaller fixes. · 35af5c4e
      Tim Janik authored
      Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/*.c: marshaller fixes.
      
              * gtk/gtkmarshal.list: extreme cleanup.
      
              * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
              param spec for now.
      
              * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
              where appliable.
      
              * gtk/gtktypeutils.[hc]: updates to GLib API changes.
              special cased autogenerated boxed types from gtktypebuiltins_ids.c
              which are not reference counted:
              GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
              PangoFontDescription, GtkTreeIter and GtkTreePath.
      
      Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktreeselection.h:
              * gtk/gtktreemodel.c:
              * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
              file should be included directly, and gobject/gmarshal.h
              as well as gtk/gtkmarshal.h even can't be included directly.
      
              * Makefile.am: grr, install gtk-config-2.0.
      
              * gtk/testgtk.c:
              * gtk/simple.c:
              * gtk/gtkmenu.c:
              * gtk/gtkitemfactory.c: use g_object_connect() instead of
              passing "*signal*::*" args to gtk_widget_set().
      
              * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
      
              * gtk/*.c: removed trailer arg from property setters and getters.
              macro fixups.
      
      Thu Mar  1 04:01:57 2001  Tim Janik  <timj@gtk.org>
      
              * test-gdk-pixbuf.c: fixed includes.
      35af5c4e
  30. 15 Feb, 2001 1 commit
  31. 13 Feb, 2001 1 commit
    • Havoc Pennington's avatar
      fix bug where it always set the foreground, even if we were only using a · 2097d764
      Havoc Pennington authored
      2001-02-12  Havoc Pennington  <hp@pobox.com>
      
      	* gdk/gdkpango.c (gdk_pango_get_gc): fix bug where
      	it always set the foreground, even if we were only using
      	a stipple.
      	(gdk_draw_layout_line_with_colors): new function, allow
      	override colors
      	(gdk_draw_layout_with_colors): new function, allow override
      	colors
      	(gdk_pango_layout_line_get_clip_region): function to get the clip
      	region for a logical text range
      	(gdk_pango_layout_get_clip_region): get the clip region for a
      	logical text range
      
      	* gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
      	(gdk_colormap_new): fix call to gdk_colormap_sync() so it has
      	the right number of arguments.
      
      	* gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
      	enhance the function to check that node data corresponds to a
      	view still belonging to the tree.
      
      	* gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the
      	GtkTreePath
      	(gtk_tree_view_inserted): ditto
      	(gtk_tree_view_child_toggled): ditto
      
      	* gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
      	simplify this code.
      
      	* gtk/gtkcellrenderertext.c (get_layout): fix leak of
      	a PangoAttrList
      
      	* demos/gtk-demo/main.c (load_file): Fix leak of a GString
      
      	* gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
      
      	* gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
      	size in the size request
      	(gtk_menu_bar_size_allocate): consider toggle size here
      
      	* gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
      	that displays a widget in the toggle slot
      
      	* gtk/testgtk.c: test GtkImageMenuItem
      
      	* gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
      
      	* gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
      	request and allocation
      
      	* gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
      
      	* gtk/gtkcheckmenuitem.c
      	(gtk_check_menu_item_toggle_size_request): ditto
      2097d764