1. 24 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Take border width into account. · 60c1630e
      Owen Taylor authored
      Sun Feb 24 14:15:45 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktextview.c (widget_to_buffer): Take border
              width into account.
      
              * gtk/gtklabel.c (get_label_wrap_width): Don't use GdkFont
              to compute wrap width ... GdkFont will pull in X11 core
              fonts.
      60c1630e
  2. 21 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Implement "fuzzy" key binding lookups; allow matches on key and level but · 708e1a95
      Owen Taylor authored
      Wed Feb 20 14:26:47 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkkeyhash.[ch]: Implement "fuzzy" key binding lookups;
              allow matches on key and level but not group. Also, implement
              ignoring "consumed modifiers correctly."
      
              * gtk/gtkaccelgroup.c gtk/gtkbindings.c: Convert to using
              GtkKeyHash.
      
              * gtk/gtkdebug.h gtk/gtkmain.c: Support GTK_DEBUG=keybindings
      
              * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fill in
              the group for key release events as well as key press events.
      
              * gdk/gdkkeys.h gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
              Rename unused_modifiers to consumed_modifiers, make the docs and
              non-Xkb implementation match the Xkb implementation.
      
              * gdk/linux-fb/gdkkeyboard-fb.c gdk/win32/gdkkeys-win32.c: Propagate
              doc and parameter name changes.
      
              * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
              XkbTranslateKeyCode doesn't handle LockMask, we need to handle
              it ourselves.
      
              * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Force
              <Shift>Tab to give GDK_ISO_Left_Tab, since we need consistency
              to allow dealing with ISO_Left_Tab.
      
              * gtk/gtkwindow.c gtk/gtktextview.c gtk/gtkscrolledwindow.c
              gtk/gtkpaned.c gtk/gtkcombo.c  gtk/gtknotebook.c:
              Remove inappropriate uses of GDK_ISO_Left_Tab. (GDK_ISO_Left_Tab
              or <Shift>Tab both are equivalent as a binding specifier.)
      
              * gtk/gtkbutton.c (gtk_button_class_init): Make ::activate
              GTK_RUN_ACTION, so you can bind an accelerator to it.
      
              * gtk/gtklabel.c (gtk_label_set_uline_text_internal): Call
              gdk_unicode_to_keyval on the mnemonic character.
      
              * tests/testgtk.c: Add a test for the new fuzzy key binding matching.
      708e1a95
  3. 14 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Patch from Bill Haneman and Padraig O'Briain to add cursor_aspect_ratio · 8f5c2c76
      Owen Taylor authored
      Thu Feb 14 16:46:48 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c gtk/gtktextdisplay.c gtk/gtklabel.c
      	gtk/gtkstyle.[ch] gtk/gtkwidget.c: Patch from Bill
      	Haneman and Padraig O'Briain to add cursor_aspect_ratio
      	style property to GtkWidget to allow theming the aspect
      	ratio of the cursor.
      
      	* gtk/gtkentry.c gtk/gtktextview.c gtk/gtklabel.c
      	gtk/gtkwidget.c tests/testgtkrc: Move cursor-color style property
      	to GtkWidget.
      8f5c2c76
  4. 08 Feb, 2002 1 commit
    • Darin Adler's avatar
      isspace -> g_ascii_isspace Remove gdki8n.h include. Remove <ctype.h> · 6ec06edb
      Darin Adler authored
      	* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
      	* gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
      	* gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
      	* gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
      	* gtk/fnmatch.c: Remove <ctype.h> include.
      	* gtk/gtkaccelgroup.c: Remove <ctype.h> include.
      	* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
      	g_unichar_toupper, toupper -> g_unichar_totile
      	* gtk/gtkbindings.c: Remove <ctype.h> include.
      	* gtk/gtkfontsel.c: Remove <ctype.h> include.
      	* gtk/gtkiconfactory.c: Remove <ctype.h> include.
      	* gtk/gtkinputdialog.c: Remove <ctype.h> include.
      	* gtk/gtklabel.c: Remove <ctype.h> include.
      	* gtk/gtkmain.c: Remove <ctype.h> include.
      	* gtk/gtkmenu.c: Remove <ctype.h> include.
      	* gtk/gtkoldeditable.c: Remove <ctype.h> include.
      	* gtk/gtkrc.c: Remove <ctype.h> include.
      	* gtk/gtktextbtree.c: Remove <ctype.h> include.
      	* gtk/gtktextiter.c: Remove <ctype.h> include.
      	* gtk/gtktextsegment.c: Remove <ctype.h> include.
      6ec06edb
  5. 28 Jan, 2002 1 commit
  6. 27 Jan, 2002 1 commit
  7. 12 Jan, 2002 1 commit
    • Havoc Pennington's avatar
      sgml fixes · c627d729
      Havoc Pennington authored
      2002-01-11  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/running.sgml: sgml fixes
      
      	* gtk/tmpl/gtksignal.sgml: sgml fixes
      
      	* gtk/tmpl/gtklabel.sgml: do the intro section
      
      2002-01-11  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtklabel.c: put in more links to Pango markup format docs
      	(gtk_label_set_justify): mention gtk_misc_set_alignment
      c627d729
  8. 20 Dec, 2001 1 commit
    • Matthias Clasen's avatar
      More precise documentation about underscores and mnemonics. (#66380) · 3aabcd28
      Matthias Clasen authored
              * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
              gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
              documentation about underscores and mnemonics. (#66380)
      
              * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
              cyclic reference in docs.
      
              * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
              of default value. (#65402)
      
              * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale):
              Markup fixes.
      
              * gdk-pixbuf-io.c, gdk-pixbuf-animation.c, gdk-pixbuf-data.c,
              gdk-pixbuf-loader.c, gdk-pixbuf-scale.c, gdk-pixbuf-util.c,
              gdk-pixdata.c: Markup fixes.
      
              * gtk/text_widget.sgml: More precise wording. (#63388)
      
              * gtk/tmpl/gtksignal.sgml (GTK_SIGNAL_OFFSET): Add docs.
      
              * gtk/resources.sgml: Fix markup of mail URLs.
      
              * gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkobject.sgml: Markup fixes.
      
              * gtk/tmpl/gtktoolbar.sgml (gtk_toolbar_{prepend,append}_element):
              Expand documentation. (#60471)
      
              * gtk/tmpl/gtkmain.sgml: Remove misleading information about
              gtk_set_locale().  (#65758)
      3aabcd28
  9. 12 Dec, 2001 1 commit
  10. 11 Dec, 2001 1 commit
  11. 06 Dec, 2001 1 commit
    • Matthias Clasen's avatar
      Fix docs. (#66383) · 31df9723
      Matthias Clasen authored
              * gtk/gtklabel.c: Fix docs. (#66383)
      
              * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs.
              (#66278, #66280)
      
              * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
              gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
      
              * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
              Don't emit a g_warning() about being deprecated. (#66208)
      
              * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
      
              * gtk/gtkcontainer.c: Doc fixes.
      
              * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
      
              * gtk/gtkstyle.c (gtk_style_attach): Add docs.
      
              * gdk-pixbuf.h (gdk_pixbuf_ref, gdk_pixbuf_unref,
              gdk_pixbuf_animation_ref, gdk_pixbuf_animation_unref):
              Deprecate. (#66208)
      
              * gtk/tmpl/gtklabel.sgml: Remove redundant docs. (#66383)
      
              * gtk/tree_widget.sgml: Typo fix. (#66256)
      
              * gdk-pixbuf/Makefile.am (SCAN_OPTIONS): Add --deprecated-guards.
      
              * gtk/tmpl/gtktext.sgml, gtk/tmpl/gtktree.sgml,
              gtk/tmpl/gtktreeitem.sgml: Updates.
      31df9723
  12. 03 Dec, 2001 1 commit
    • Alexander Larsson's avatar
      Return FALSE from expose handlers. · c7cd3421
      Alexander Larsson authored
      2001-12-03  Alex Larsson  <alexl@redhat.com>
      
      	* gtk/gtkaccellabel.c:
      	* gtk/gtkarrow.c:
      	* gtk/gtkcolorsel.c:
      	* gtk/gtkcontainer.c:
      	* gtk/gtklabel.c:
      	* gtk/gtktextview.c:
      	* gtk/gtktogglebutton.c:
      	* gtk/gtktreeview.c:
      	* gtk/gtkwindow.c:
      	Return FALSE from expose handlers.
      c7cd3421
  13. 19 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Change default for justify to GTK_JUSTIFY_LEFT. Assuming that multiline · 96e6febe
      Owen Taylor authored
      Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtklabel.c (gtk_label_init): Change default for
      	justify to GTK_JUSTIFY_LEFT. Assuming that multiline
      	labels are most often wrapped labels, this gives better
      	compatibility with GTK+-1.2, where justification was
      	ignored for wrapped labesl and is a more sensible
      	default in any case. (#64489)
      
      	* gtk/gtklabel.c (gtk_label_class_init): Fix default
      	for wrap property to FALSE.
      96e6febe
  14. 17 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Make gtkmarshal.list/gtkmarshal.h only for compatibility with GTK+-1.2; · a036c6e5
      Owen Taylor authored
      Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
      	gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
      	only for compatibility with GTK+-1.2; and deprecate it;
      	put all marshalers we actually use into gtkmarshalers.list
      	and use the _gtk_marshal_ prefix for these marshalers.
      a036c6e5
  15. 14 Nov, 2001 2 commits
    • Alexander Larsson's avatar
      Don't recalculate the layout on each gkt_label_ensure_layout () for · cfb30b2d
      Alexander Larsson authored
      2001-11-14  Alex Larsson  <alexl@redhat.com>
      
      	* gtk/gtklabel.c:
      	Don't recalculate the layout on each gkt_label_ensure_layout () for
      	wrapped labels.
      cfb30b2d
    • Matthias Clasen's avatar
      Rearrange docs (#64566) · 3470c634
      Matthias Clasen authored
              * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
      
              * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
      
              * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
      
              * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
      
              * gtk/gtklabel.c: Documentation fixes (#64452)
      
              * docs/reference/gdk/Makefile.am (MKDB_OPTIONS),
              docs/reference/gdk-pixbuf/Makefile.am (MKDB_OPTIONS),
              docs/reference/gtk/Makefile.am (MKDB_OPTIONS): Add --sgml-mode.
      
              * docs/reference/gdk-pixbuf/tmpl/file-saving.sgml,
              docs/reference/gdk-pixbuf/tmpl/module_interface.sgml,
              docs/reference/gdk-pixbuf/tmpl/gdk-pixbuf-xlib-rgb.sgml: Consistent short descriptions.
              * docs/reference/gtk/tmpl/gtkprogressbar.sgml: Remove duplicate docs. (#64469)
      
              * docs/reference/gtk/gtk-sections.txt: Add missing TITLEs (#64459, #6456
      3470c634
  16. 08 Nov, 2001 1 commit
  17. 02 Nov, 2001 1 commit
  18. 31 Oct, 2001 1 commit
    • Owen Taylor's avatar
      Add a "menu" property and notify on it. (#62798, Padraig O'Briain) · 2145a4ef
      Owen Taylor authored
      Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkoptionmenu.c (gtk_option_menu_detacher):
      	Add a "menu" property and notify on it. (#62798,
      	Padraig O'Briain)
      
      	* gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
      	gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}:
      	Fix set_text to take a gchar, not a guchar, and to have
      	a len argument.
      2145a4ef
  19. 27 Oct, 2001 1 commit
    • Hans Breuer's avatar
      to simplify parsing for exported functions: - made implementation · e2e69403
      Hans Breuer authored
      2001-10-27  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
      	  gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
      	  gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
      	  gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
      	  gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
      	  gtk/gtktreestore.c gtk/gtkvbbox.c :
      	to simplify parsing for exported functions:
      	- made implementation signature static, when the local
      	  prototype already was
      	- put the functions return value on it's own line
      	- added as space between the function name and the
      	  opening bracket
      
      	* gtk/gtk.def : added the remaining exported functions
      e2e69403
  20. 23 Oct, 2001 1 commit
    • Anders Carlsson's avatar
      Use an image menu item here (popup_targets_received): Call · fd3196d9
      Anders Carlsson authored
      2001-10-24  Anders Carlsson  <andersca@gnu.org>
      
      	* gtk/gtkentry.c: (append_action_signal): Use an image menu item here
      	(popup_targets_received): Call append_action_signal with stock items
      
      	* gtk/gtklabel.c: (append_action_signal): Use an image menu item here
      	(gtk_label_do_popup): Call append_action_signal with stock items
      
      	* gtk/gtktextview.c: (append_action_signal): Use an image menu item here
      	(popup_targets_received): Call append_action_signal with stock items
      fd3196d9
  21. 22 Oct, 2001 2 commits
    • Owen Taylor's avatar
      Add cursor-position, selection-bound properties. (#62148, reported by · c8b58228
      Owen Taylor authored
      Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtklabel.c: Add cursor-position, selection-bound
      	properties. (#62148, reported by Padraig O'Briain)
      
      	* gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
      	to cursor_position. (1.3.x addition, text_position is an awful
      	name.) Make cursor_position read-only to avoid sticky questions
      	of interaction with selection_bound. (#62636, reported by
      	Padraig O'Briain)
      c8b58228
    • Owen Taylor's avatar
      Deprecate gtk_entry_set_editable. (#58768, Vitaly Tishkov) · 0c6a8f53
      Owen Taylor authored
      Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
              (#58768, Vitaly Tishkov)
      
              * gtk/gtkobject.h: Deprecate with abandon.
              (#61942, Vitaly Tishkov, Matthias Clasen)
      
              * gtk/gtksignal.h: Deprecate everything.
      
              * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
              all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
              (#61942, Matthias Clasen)
      
              * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
              Havoc Pennington)
      
              * gtk/gtkitemfactory.h: Deprecate compat functions
              for GtkMenuFactory code. (#62071)
      
              * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
              gdk_draw_text,gdk_draw_text_wc. (#62071)
      
              * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
              Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
              to gtk_clipboard_get().
      0c6a8f53
  22. 25 Sep, 2001 1 commit
    • Owen Taylor's avatar
      ue Sep 25 12:41:17 2001 Owen Taylor <otaylor@redhat.com> · 0c3be554
      Owen Taylor authored
      	* configure.in: Version 1.3.9, interface age 0, binary age 0.
      
      	* configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
      
      	* NEWS: Updates.
      
      Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
      	function for drawing cursors between gtkentry/gtklabel/gtktextview.
      	Should this be public? It has a bit of an odd interface, but
      	custom editing widgets probably should be using it.
      	Function will draw with wider width for taller cursors, and
      	draws a little indicator arrow to indicate directoin for split
      	cursors.
      
      	* gtk/gtktextview.c: Add a "cursor_color" property.
      
      	* gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
      	gtk_text_layout_draw().
      
      	* gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
      	_gtk_draw_insertion_cursor().
      
      Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
      	the behavior where you could turn family_set (etc) back on
      	and get back the values you had before.
      
      	* demos/gtk-demo/stock_browser.c (id_to_macro): Use
      	g_string_ascii_up() rather than looping through the
      	string ourself.
      0c3be554
  23. 19 Sep, 2001 1 commit
    • Alexander Larsson's avatar
      Don't draw with GTK_STATE_ACTIVE. · 1a46d3d5
      Alexander Larsson authored
      2001-09-18  Alex Larsson  <alexl@redhat.com>
      
              * gtk/gtkcheckbutton.c:
      	* gtk/gtkradiobutton.c:
      	Don't draw with GTK_STATE_ACTIVE.
      
      	* gtk/gtkclist.c:
      	* gtk/gtkctree.c:
      	Draw lines between rows with base_gc[GTK_STATE_NORMAL].
      
      	* gtk/gtktextdisplay.c:
      	Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
      	unfocused with base_gc [GTK_STATE_ACTIVE].
      
      	* gtk/gtkentry.c:
      	Add select all menu-item.
      	Default cursor color is red.
      	Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
      	unfocused with base_gc [GTK_STATE_ACTIVE].
      
      	* gtk/gtklabel.[ch]:
      	Add keynav + menu to selectable lables.
      	Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
      	unfocused with base_gc [GTK_STATE_ACTIVE].
      
      	* gtk/gtkfilesel.c:
      	Add drag and drop support.
      
      	* gtk/gtkstyle.c:
      	(This was checked in earlier)
      	New default values for text/base SELECTED and ACTIVE
      1a46d3d5
  24. 18 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Fix up for changes to PangoFontDescription. · a15d5c36
      Owen Taylor authored
      Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
      	  gtk/gtktextview.c tests/testgtk.c: Fix up for changes to
      	PangoFontDescription.
      
      	* gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
      	gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
      	structure.
      
      	* gtk/gtkfontsel.c: Fix up for new Pango font listing API.
      
      	* gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
        	direct access to style->font. Deprecate gtk_style_ref/unref.
      
       	* gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
        	Remove gtk_style_ref/unref with g_object_ref/unref.
      
        	* gtk/gtkcalendar.c: Remove leftover macros accessing
        	style->font.
      
        	* gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
        	variable.
      
        	* gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of
      	style->font.
      a15d5c36
  25. 27 Aug, 2001 1 commit
    • Alexander Larsson's avatar
      Add properties for labels, mnemonics and stock items. Added C accessor · f9e66624
      Alexander Larsson authored
      2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
      
      	* gtk/gtkbutton.[ch]:
      	Add properties for labels, mnemonics and stock items.
      	Added C accessor functions for the properties.
      	Removed deprecated button->child.
      
      	* gtk/gtkradiobutton.c:
      	* gtk/gtktogglebutton.c:
      	Update to use the functions in GtkButton.
      
      	* gtk/gtkcheckbutton.c:
      	Update to use the functions in GtkButton.
      	Changed size allocation of child. Now only gets as much
      	space as it requests.
      
      	* gtk/gtkclist.c:
      	Don't use GtkButton->child
      
      	* gtk/gtklabel.c:
      	Fixed typo in docs
      f9e66624
  26. 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
  27. 05 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)), not · c1a14d03
      Owen Taylor authored
      Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
      	  gtk/gtkwidget.c:
      	Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
      	not GTK_WIDGET_GET_ANCESTOR ... see
      	http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
      	Indicate the best practice in the docs for gtk_widget_get_toplevel().
      
      	* gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
      	so GtkPlug can give the correct signals when transforming
      	from a child to a toplevel.
      
      	* gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
      	reparentation correctly.
      
      	* gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
      	Propagate the previous_toplevel argument down properly.
      
      	* gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
      	of wrong atr list.
      
      	* gtk/gtkplug.[ch]: Add an "embedded" signal.
      
      	* gtk/gtksocket.[ch]: Add "child_added", "child_removed"
      	signals.
      
      	* gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add
      	functions gtk_plug_get_id(), gtk_socket_get_id(),
      	to avoid the user having to worry about realization,
      	and gdkx.h.
      
      	* tests/testsocket.c: Extend to try out the new signals
      	and gtk_plug/socket_get_id().
      
      	* gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
      	setting of underline attributes.
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
      	DestroyNotify events from SubstructureNotifyMask
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
      	Switch GDK_WINDOW_TYPE (window) as needed.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
      	allow creation of toplevel windows as children of
      	foreign windows.
      
      	* gtk/gtkplug.c: Remove hacks involving changing private
      	fields of GdkWindow.
      
      	* gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make
      	exactly the same signals and notification
      	be emitted for local embedding as for inter-process
      	embedding.
      c1a14d03
  28. 01 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Remove change check for GTK_TYPE_OBJECT derivation to G_TYPE_OBJECTS - · de985fb5
      Owen Taylor authored
      Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktypeutils.c (gtk_type_class): Remove
      	change check for GTK_TYPE_OBJECT derivation to
      	G_TYPE_OBJECTS - it's Tim-approved to use this
      	for arbitary objects.
      
      	* gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
      	prefix gtk_container_dequeue_resize_handler().
      
      	* gtk/gtkwidget.[ch]: Add a previous_toplevel argument
      	to the hierarachy_changed signal, since you otherwise
      	have to always keep that around.
      
      	* gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
      	for extra argument to hierarchy_changed.
      de985fb5
  29. 24 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Fix stupid error introduced last night that was making things decidedly · cc223eef
      Owen Taylor authored
      Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
      	introduced last night that was making things decidedly not work.
      
      	* gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
      	so that we have getter/setter pairing everywhere it makes
      	sense. (#55767)
      
      	* gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
      	Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
      	deprecated compat macro. (#55516)
      
      	* gtk/gtklabel.[ch]: Add functions
      	gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
      	gtk_label_set_label(), which mirror the property API for GtkLabel.
      	Make gtk_label_get_attributes() only reflect the attributes
      	set by gtk_label_set_attributes.
      
      	* gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
      	from gtk_notebook_set_page().
      cc223eef
  30. 15 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      Docs fixups, and: · 85b23757
      Havoc Pennington authored
      2001-06-14  Havoc Pennington  <hp@redhat.com>
      
              Docs fixups, and:
      
      	* gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
      	GTK_DISABLE_DEPRECATED
      85b23757
  31. 09 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      add read-only "scroll_offset" property for notification when the layout · 994a8daa
      Havoc Pennington authored
      2001-06-08  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_class_init): add read-only
      	"scroll_offset" property for notification when the layout offsets
      	may have changed
      	(gtk_entry_adjust_scroll): add notify for scroll_offset
      	(gtk_entry_layout_index_to_text_index): function to compensate for
      	preedit string when doing coordinate stuff on the entry's layout
      	(gtk_entry_text_index_to_layout_index): inverse function
      	(gtk_entry_get_layout_offsets): hook to get current position of
      	the layout
      	(gtk_entry_get_layout): hook to get the layout itself.
      
      	* gtk/gtklabel.c (gtk_label_get_layout): new function
      994a8daa
  32. 05 Jun, 2001 1 commit
    • 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
  33. 01 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      implement overwrite mode · fe3e516a
      Havoc Pennington authored
      2001-06-01  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
      
      	* gtk/gtktextview.c (gtk_text_view_commit_handler): don't
      	overwrite in overwrite mode if we already deleted the selection
      	and replaced it with new text.
      
      	* gtk/gtklabel.c (gtk_label_select_region_index): if you set the
      	selection to an empty range, clear the clipboard if we owned it.
      	(gtk_label_set_selectable): give up selection if we become
      	unselectable.
      	(gtk_label_state_changed): override state changed to unselect text
      	when insensitive
      	(get_text_callback): add paranoia check that indexes aren't
      	outside of label->text
      	(gtk_label_select_region): make -1 for start_offset mean "end of
      	label," for consistency with GtkEditable
      
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
      	GTK_DIALOG_NO_SEPARATOR flag
      fe3e516a
  34. 17 May, 2001 1 commit
    • Alexander Larsson's avatar
      Add properties, based on patch by Lee Mallabone. · 6ee1ae13
      Alexander Larsson authored
      2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
      
      	* gtk/gtkbbox.c:
      	Add properties, based on patch by Lee Mallabone.
      
      	* gtk/gtknotebook.c:
      	* gtk/gtktoolbar.c:
      	Convert from GtkArg to GParam, based on patch by John Margaglione.
      
      	* gtk/gtkhscale.c:
      	* gtk/gtkvscale.c:
      	* gtk/gtkhscrollbar.c:
      	* gtk/gtkvscrollbar.c:
      	* gtk/gtkrange.c:
      	Move adjustment property to GtkRange.
      
      	* gtk/gtklabel.c:
      	Setup mnemonics on property changes
      
      	* gtk/gtkwidget.c (gtk_widget_get_property):
      	GdkExtensionMode is an enum, not a flag. Set it with
      	g_value_set_enum ().
      
      	* tests/prop-editor.c:
      	Better propery editor.
      
      	* tests/testgtk.c:
      	Add new property test. Pass zero to the property editor to
      	get properties from all derived types.
      6ee1ae13
  35. 11 May, 2001 1 commit
    • Tim Janik's avatar
      don't propagate exposes to NULL child. · 564e2235
      Tim Janik authored
      Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
              propagate exposes to NULL child.
      
              * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
              against not having one of the scrollbars.
      
              * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
              we don't keep a mnemonic window if we have no mnemonic installed.
      564e2235
  36. 30 Apr, 2001 1 commit
    • Owen Taylor's avatar
      Add an extra parameter use_text to gtk_paint_label() to deal with · 2d372c40
      Owen Taylor authored
      Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
      	  gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
      	  gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
                use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
      
      	* gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
      	  with GtkWidget::interior_focus = TRUE better.
      
      	* gtk/gtkbutton.c
      
      	* gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove
      	G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
      	change that had to be made with g_object_get.
      2d372c40
  37. 01 Apr, 2001 1 commit
    • Tim Janik's avatar
      got rid of gtk_widget_popup(), a function that bad needs to be nuked, not · 770938bf
      Tim Janik authored
      Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
              bad needs to be nuked, not just deprecated.
      
              * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
              gtk_widget_popup().
      
              * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
      
              * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
              widget.
      
              * docs/Changes-2.0.txt: updates.
      770938bf
  38. 30 Mar, 2001 1 commit
    • Alexander Larsson's avatar
      Remove leaks. · aa209a95
      Alexander Larsson authored
      2001-03-30  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkbutton.c (gtk_button_get_property):
      	* gtk/gtklabel.c:
      	Remove leaks.
      
      	* gtk/gtkcontainer.c:
      	* gtk/gtkhscale.c:
      	* gtk/gtkhscrollbar.c:
      	* gtk/gtklayout.c:
      	* gtk/gtkmisc.c:
      	* gtk/gtkprogress.c:
      	* gtk/gtkprogressbar.c:
      	* gtk/gtkrange.c:
      	* gtk/gtktable.c:
      	* gtk/gtkviewport.c:
      	* gtk/gtkvscale.c:
      	* gtk/gtkvscrollbar.c:
      	* gtk/gtkwidget.c:
      	Property patches, based on patches from John Margaglione and Lee Mallabone.
      aa209a95