1. 17 May, 2001 1 commit
    • Owen Taylor's avatar
      Make logical motion and deletion by graphemes, not by characters. · 69ef3403
      Owen Taylor authored
      Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c: Make logical motion and deletion by graphemes,
      	not by characters.
      
      	* gtk/gtkentry.c: Handle "trailing" returns from Pango when they
      	are not zero or one; that is, when graphemes of multiple characters
      	are involved.
      
      	* gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
      	FIXME.
      69ef3403
  2. 03 May, 2001 1 commit
    • Owen Taylor's avatar
      Reduce new_text_length appropriately when we run into the size limit for · 4c2a74b7
      Owen Taylor authored
      Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
      	new_text_length appropriately when we run into the
      	size limit for the entry. (#53445, reported by Jeff Franks)
      
      	* tests/testgtk.c (create_entry): Remove most of the
      	property toggle buttons. Replace with a "Props" button
      	that brings up a property editor.
      
      	* tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
      	Split the property editor code out for reuse, improve.
      4c2a74b7
  3. 28 Apr, 2001 2 commits
    • 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
      	parameters.
      
      	* gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
      	style, otherwise gtkrc.c won't know to create a new GtkStyle for
      	it.
      	(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
      	hosed.
      
      	* 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.
      7ad36413
    • Havoc Pennington's avatar
      fix warning · 7e9b154f
      Havoc Pennington authored
      2001-04-27  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
      
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
      
      	* gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
      	line/para separators
      	(gtk_entry_create_layout): set single paragraph mode on the layout
      
      	* gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
      	spacing between the image and label; instead, inside a button box
      	the button will get extra space that will go there, but if people
      	configure button box for 0 chubbiness, then there's no spacing.
      
      	* gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
      	and min/max size style properties, so people can tune their
      	chubbiness.
      
      	* tests/testgtk.c (make_toolbar): remove calls to removed toolbar
      	functions
      
      	* gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
      	space_style, and button_relief into style properties, remove
      	functions for setting them
      
      	* gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop
      	it back down
      
      	* gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
      	types from gtk_widget_style_get
      
      	* gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
      	with a style property.
      
      	* gdk/x11/gdkevents-x11.c: namespace the settings
      
      	* gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
      
      	* gtk/gtksettings.c (gtk_settings_class_init): remove code with
      	side effects from inside g_assert(), so that G_DISABLE_ASSERT can
      	be used. Also, translate doc strings for settings. Also, namespace
      	the double-click-time property. Also, remove bell properties crap.
      7e9b154f
  4. 26 Apr, 2001 1 commit
  5. 18 Apr, 2001 1 commit
    • Havoc Pennington's avatar
      Close bug #50615: · f8ceea8b
      Havoc Pennington authored
      2001-04-18  Havoc Pennington  <hp@redhat.com>
      
              Close bug #50615:
      
      	* gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
      	the layout
      
      	* gtk/gtktext.c: Use base/text instead of bg/fg throughout
      
      	* gtk/gtkentry.c: Use base/text instead of bg/fg throughout
      
      	* gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
      
      	* gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
      	to blue for base, in addition to bg
      f8ceea8b
  6. 02 Apr, 2001 4 commits
    • Owen Taylor's avatar
      Add GdkEventSetting event for notification of changes to system settings, · b52b326d
      Owen Taylor authored
      Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkevents.h: Add GdkEventSetting event for notification
      	of changes to system settings, gdk_setting_get() to retrieve
      	a single system setting.
      
      	* gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
      	to the draft XSETTINGS mechanism.
      
      	* gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
      	XSETTINGS.
      
      	* gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
      	of GDK settings changes to the GtkSettings object.
      
      	* gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
      	double-click-timeout property to GDK.
      
      	* gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
      	Define GDK boxed types here.
      
      	* gdk/Makefile.am gdk/makeenums.pl: Generate source files
      	gdk/gdkenumtypes.[ch] for enum definitions.
      
      	* gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
      	* gtk/gtk-boxed.defs: Comment out GDK types
      	* gtk/gtktypeutils.h: Remove GDK types
      	* gtk/Makefile.am: No longer scan GDK headers for enumerataions
      b52b326d
    • Owen Taylor's avatar
      Avoid chaining up to parent impl, since we have a INPUT_ONLY window. · 3961437b
      Owen Taylor authored
      Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
      	chaining up to parent impl, since we have a INPUT_ONLY
      	window.
      
      	* gtk/gtkentry.[ch]: Add a cursor_color property to set the
      	foreground color for the cursor.
      3961437b
    • Owen Taylor's avatar
      Fix G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE · c944151a
      Owen Taylor authored
      Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_class_init): Fix
      	G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
      	stupidity.
      
      Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
      
      	[ First pass at adding style properties. Still needs some definite
      	fine-tuning. ]
      
              * gtk/gtkbutton.c: Add ::default_spacing style property.
      
      	* gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
      	::indicator_spacing style properties.
      
      	* gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
      	style properties.
      
      	* gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
      	rather than a normal property.
      
      	* gtk/gtkwidget.c: Add an ::interior_focus style property to
      	draw focus inside buttons, in the Windows/Java Metal/etc. style.
      
      	* gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
      	Honor ::interior_focus.
      
      	* gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is
      	TRUE.
      
      	* gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
      	Add ::slider_width, ::trough_border, ::stepper_size,
      	::stepper_spacing style properties.
      
      	* gtk/gtkscale.[ch] Add ::slider-length style property.
      c944151a
    • Owen Taylor's avatar
      Add boxed type for GtkRequistion. Use it for ::size-request. · dac3b3a1
      Owen Taylor authored
      Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
      	Add boxed type for GtkRequistion. Use it for ::size-request.
      
      	* gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
              Add a new GtkBorder structure useful for geometry properties
      	for widgets. Add corresponding GTK_TYPE_BORDER.
      
      	* gtk/gtkwidget.c (gtk_widget_class_install_style_property):
      	Support automatic parser selection like
      	gtk_settings_install_property_parser().
      
      	* gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
      	functionality for use by gtk_widget_class_install_style_property.
      	Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
      
      Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
      	g_param_spec_unichar().
      dac3b3a1
  7. 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
  8. 29 Mar, 2001 1 commit
    • Owen Taylor's avatar
      Add missing NULL on valist. · 1586ade9
      Owen Taylor authored
      Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/testtext.c (create_buffer): Add missing NULL on
      	valist.
      
      	* gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
      	c-n-p problem with INCONSISTENT property.
      
              [ Patch from Havoc Pennington  <hp@redhat.com> ]
      
      	* gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
      	hook.
      
      	* gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
      	signal as a hook for extending the default popup menu
      
      	* gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
      	use radio menu items for the input method menuitems
      
      	* gtk/gtkimcontextsimple.c (check_hex): do better validation of
      	inserted unicode from Ctrl-Shift-hex input method
      
      	* gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
      	validatation here, already done at GtkTextBuffer level.
      
      	* gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
      	popup_menu run action signal and Shift+F10 and Menu keybindings.
      
      	* gtk/gtkentry.c: implement a default handler for popup_menu
      
      	* gtk/gtktextview.c: implement a default handler for popup_menu
      
      	* gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
      	from a key event
      
      	* gtk/gtklabel.c: remove "trailer" cruft
      1586ade9
  9. 24 Mar, 2001 1 commit
    • Havoc Pennington's avatar
      make this somewhat key-navigable · 207e3bb9
      Havoc Pennington authored
      2001-03-23  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtkhsv.c: make this somewhat key-navigable
      
      	* gtk/gtkfontsel.c: mnemonics
      
      	* gtk/gtkgamma.c: mnemonics
      
      	* gtk/gtkcolorsel.c: add mnemonics to labels
      
      2001-03-22  Havoc Pennington  <hp@pobox.com>
      
      	Applied big patch from Seth Lytle to fix event handler return
      	values, slightly modified.
      
      	* gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
      	handled.
      	(gtk_calendar_key_press): return TRUE for GDK_space triggers
      	select_day
      
      	* gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
      	(gtk_clist_button_release): return TRUE if handled
      
      	* gtk/gtkcolorsel.c (mouse_release):
      	(palette_activate):
      	(palette_press):
      	(palette_new):
      	(mouse_press):
      	(get_screen_color):
      	fixed return type (void to gboolean), return TRUE,
      	added GTK_SIGNAL_FUNC cast
      
      	* gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
      	(void to gboolean), and return TRUE
      	(gtk_combo_button_release): changed return value to TRUE after
      	gtk_grab_add on combo->popwin
      
      	* gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
      	collapse or expand
      
      	* gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
      	button/motion
      
      	* gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
      	press/release and motion that trigger act
      
      	* gtk/gtkentry.c (gtk_entry_button_release): return TRUE
      
      	* gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
      	for GDK_Return
      
      	* gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
      	(gtk_list_button_release): return TRUE if selection
      
      	* gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
      	press
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_button_press):
      	(gtk_menu_shell_button_release): chain parent_menu_shell retval
      
      	* gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
      	nothing triggered
      	(gtk_notebook_button_release): return TRUE if we do anything
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_button_press):
      	(gtk_spin_button_button_release): return TRUE or chained retval
      
      	* gtk/gtktext.c (gtk_text_button_press):
      	(gtk_text_button_release): return TRUE
      	(gtk_text_key_press): remove redundant retval code
      
      	* gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
      	and sensitive
      	(gtk_tree_item_subtree_button_click): changed type to gint, and return
      	TRUE if sensitive
      
      	* gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies
      	return TRUE
      207e3bb9
  10. 21 Mar, 2001 1 commit
    • Alexander Larsson's avatar
      Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and removed · de5eafed
      Alexander Larsson authored
      2001-03-21  Alexander Larsson  <alexl@redhat.com>
      
              * gtk/gtkbutton.[ch]:
      	* gtk/gtkdialog.c:
      	Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
      	removed accel_group argument. Renamed gtk_button_new_accel() to
      	gtk_button_new_with_mnemonic() and removed accel_group argument.
      
      	* gtk/gtkcheckbutton.[ch]:
      	New function gtk_check_button_new_with_mnemonic().
      
      	* gtk/gtkentry.c:
      	Override activate_mnemonic and just grab focus.
      
      	* gtk/gtkitemfactory.c:
      	Don't add menu uline accel group, instead use mnemonics support.
      
      	* gtk/gtklabel.[ch]:
      	New support for mnemonics.
      
      	* gtk/gtkmarshal.list:
      	Needed BOOLEAN:BOOLEAN for activate_mnemonic.
      
      	* gtk/gtkmenu.[c]:
      	* gtkmenushell.c:
      	Use mnemonics instead of accel groups for uline
      	support in menu items.
      	Removed gtk_menu_get_uline_accel_group() and
      	gtk_menu_ensure_uline_accel_group().
      
      	* gtk/gtkmenuitem.c:
      	Override activate_mnemonic to handle switching between
      	menu items if there are collisions.
      
      	* gtk/gtknotebook.c:
      	Connect to activate_mnemonic on the tab_label, so that
      	activating it switches to that notebook page.
      
      	* gtk/gtkwidget.[ch]:
      	Add activate_mnemonic signal. New function
      	gtk_widget_activate_mnemonic() to emit it.
      	Default implementation does activate/grab_focus.
      
      	* gtk/gtkwindow.[ch]:
      	Add support for mnemonics in windows.
      	New functions:
      	gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
      	gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
      
      	* gtk/testgtk.c:
      	Update to function name changes.
      de5eafed
  11. 16 Mar, 2001 1 commit
    • HideToshi Tajima's avatar
      rename set_cursor_pos to set_cursor_location in GtkInputContext class · df726ee8
      HideToshi Tajima authored
      2001-03-15  HideToshi Tajima  <tajima@happy>
      
              * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_locat
      ion):
              * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
              * gtk/gtkentry.c (update_im_cursor_location):
              * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
              * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
              set_cursor_pos to set_cursor_location in GtkInputContext class
      df726ee8
  12. 14 Mar, 2001 1 commit
    • HideToshi Tajima's avatar
      add set_cursor_pos() virtual method · 02f376a9
      HideToshi Tajima authored
      2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
      
      	* gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
      	* gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
      	* gtk/gtkimcontext.h (struct _GtkIMContextClass): add
      	set_cursor_pos() virtual method
      
      	* modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
      	(gtk_im_context_xim_set_cursor_pos): add implementation for
      	set_cursor_pos() method
      
      	* gtk/gtkentry.c (recompute_idle_func): set current cursor
      	position to input methods
      02f376a9
  13. 07 Mar, 2001 1 commit
    • Havoc Pennington's avatar
      remove trailer (gtk_entry_set_property): remove trailer · 29b902a4
      Havoc Pennington authored
      2001-03-07  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_get_property): remove trailer
      	(gtk_entry_set_property): remove trailer
      
      	* gtk/gtkentry.c (gtk_entry_set_width_chars):
      	(gtk_entry_get_width_chars): new functions, to set size request to
      	a given number of characters
      
      	* gtk/testgtk.c (create_dialog): beef up the dialog test slightly
      
      	* gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
      	(gtk_dialog_get_has_separator): new function
              (run_delete_handler): fix to not emit "response" signal
      	because we already did in the delete event handler installed
      	at dialog creation time.
      
      	* gtk/gtkdialog.h: add a has_separator property,
      	add GTK_DIALOG_NO_SEPARATOR flag
      29b902a4
  14. 03 Mar, 2001 1 commit
    • Owen Taylor's avatar
      Add shift-clicking to extend the selection. (Roughly based on patch from · a859fa13
      Owen Taylor authored
      Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
      	to extend the selection. (Roughly based on patch
      	from Jay Cox, #50939)
      
      	* gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
      	to properly handle previous GDK_BUTTON_PRESS.
      	(Patch from Jay Cox, #50938)
      
      	* gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
      	'\0' back along with the deleted text. (#51148)
      a859fa13
  15. 02 Mar, 2001 1 commit
    • Havoc Pennington's avatar
      use _gdk_region_get_xrectangles() · 8860615d
      Havoc Pennington authored
      2001-03-02  Havoc Pennington  <hp@redhat.com>
      
      	* gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
      	_gdk_region_get_xrectangles()
      
      	* gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
      
      	* gtk/testgtk.c (create_shapes): add test for shape_combine_region
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
      	function, contributed by Ron Steinke
      
      	* gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
      	gdk_net_wm_supports
      
      	* gdk/gdkregion-generic.c (gdk_region_get_rectangles):
      	New function, contributed by Ron Steinke
      
      	* gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function,
      	used to line up the text in the entry when using the entry for
      	editable sheet cell hacks
      
      	* gtk/testgtk.c (create_entry): test the activate_default setting
      	on GtkEntry
      
      	* gtk/gtkentry.c (gtk_entry_set_activates_default): New function to
      	cause the entry to activate the default button for a dialog when
      	activated
      	(gtk_entry_get_activates_default): new function
      8860615d
  16. 28 Feb, 2001 1 commit
    • Havoc Pennington's avatar
      Remove draw_focus and draw_default (gtk_widget_draw_focus): remove this · 56a2f2c6
      Havoc Pennington authored
      2001-02-28  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
      	draw_default
      	(gtk_widget_draw_focus): remove this function; we could instead
      	make it just gtk_widget_draw(), but in most cases I think the
      	result would be broken user code, so think it's better to have
      	that code not compile and get fixed
      	(gtk_widget_draw_default): ditto
      
      	* gtk/gtkwidget.c: Add default handlers for focus_in_event and
      	focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
      
      	* gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
      	widgets lose/get the default, instead of calling draw_default
      
      	* docs/Changes-2.0.txt: note about all this
      
      	Then fixed every widget in GTK, I won't list all the filenames.
      56a2f2c6
  17. 21 Feb, 2001 2 commits
    • Havoc Pennington's avatar
      unbreak this function · 0ebf7690
      Havoc Pennington authored
      2001-02-21  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
      	unbreak this function
      
      	* gtk/gtkentry.c: apply patch from Lee Mallabone to add object
      	properties
      
      	* gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
      	properties
      
      	* gtk/gtkcombo.c: apply patch from Lee Mallabone to add object
      	properties
      
      	* gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
      	mean unset the max length
      0ebf7690
    • Alexander Larsson's avatar
      Added new menu separator item. The drawing and size handling is still done · e1e093fa
      Alexander Larsson authored
      2001-02-21  Alexander Larsson  <alexl@redhat.com>
      
              * gtk/gtkseparatormenuitem.[ch]:
      	Added new menu separator item. The drawing and size handling
      	is still done in GtkMenuItem, but the API is a bit more sane.
      
      	* gtk/Makefile.am:
      	Add gtkseparatormenuitem.[ch].
      
      	* gtk/gtk.h:
      	Add gtkseparatormenuitem.h.
      
      	* gtk/gtkentry.c:
      	* gtk/gtkmenufactory.c:
      	* gtk/gtktextview.c:
      	Use the new API for menu separators.
      
      	* demos/gtk-demo/menus.c (create_menu):
      	Add some GtkSeparatorMenuItem demo code.
      e1e093fa
  18. 17 Feb, 2001 1 commit
    • Havoc Pennington's avatar
      convert the X coordinates so they're with respect to the line, rather than · 08add3cd
      Havoc Pennington authored
      2001-02-15  Havoc Pennington  <hp@redhat.com>
      
      	* gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
      	the X coordinates so they're with respect to the line, rather than
      	with respect to the layout.
      
      	* gtk/gtkalignment.c: Convert to new property API, patch from Lee
      	Mallabone
      
      	* gtk/testgtk.c (create_range_controls): add vscale tests,
      	and inverted test
      
      	* gtk/gtkrange.c (gtk_range_set_inverted): new function to fix
      	#50806
      
      	* gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
      
      	* gtk/gtktextiter.h (gtk_text_iter_is_last): rename
      	gtk_text_iter_is_end
      
      	* gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
      	rename gtk_text_buffer_get_end_iter
      
      	* gtk/testgtk.c (create_labels): Add test for selectable
      
      	* gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
      	the selection stuff. This code is kind of broken since it doesn't
      	use the theme engine.
      
      	* gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
      	fix infinite loop and y offset problem
      	(gdk_draw_layout_line_with_colors): fix foreground color handling
      
              * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag
      	that makes the label selectable.
      
      	* gtk/gtklabel.c (gtk_label_style_set): recreate the label's
      	layout when the style is set, since fonts etc. could have changed.
      08add3cd
  19. 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
  20. 07 Feb, 2001 1 commit
  21. 03 Feb, 2001 1 commit
  22. 02 Feb, 2001 1 commit
    • Owen Taylor's avatar
      Get rid of a bunch of g_strdup_printf("%s%s") in favor of g_strconcat(). · a1a252ce
      Owen Taylor authored
      Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
      	a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
      
      	* gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
      	since some people set $(libdir) separately. (#1290, David Kaelbling)
      
      Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
      	defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
      	MAXPATHLEN, but the code here depends on a fixed value.)
      	(#4524)
      
      Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
      	where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
      
      Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkctree.c (real_tree_move): If the node being moved isn't
      	viewable there is no way that moving the node will cause the
      	focus row to become not viewable, so omit check on the visibility
      	of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
      
      Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
      	selection before inserting new text.
      
      Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
      	Make the sensitivity of the reparented child track that of
      	the original parent menu item. (#34218, David Hodson)
      
      	* gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
      	the case where the current item is destroyed properly.
      
      	* gtk/gtkoptionmenu.c: Some additional code cleanups and fix
      	some edge cases with child-less menuitems.
      
      Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
      	key pop down window. (#12074, Jon K Hellan)
      
      Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
      	toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan)
      	The solution here isn't perfect - you get an extraneous
      	emission of "toggle", which could conceivably confuse an app,
      	but better than the current situation. LXR search seems to
      	indicate that no apps in GNOME CVS connect to "toggle".
      
      Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
              gtk_public_h_sources to directly here to avoid warning when
              building srcdir != builddir. (#9656)
      
      Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkrange.c: Patch from Kipp Hickman to make the event
      	handlers in gtkrange.c return the proper values (TRUE == handled)
      	(#10316).
      
      	This is just the tip of the iceberg, but gtkrange.c is the
      	most common place where the propagation is problematical,
      	and also a place where it is almost certainly safe to change
      	this in the stable branch.
      
      	(You don't want right click popups on a range control or anything...)
      
      Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktext.c (clear_focus_area): We need to clear the focus
      	area on focus out, even if a background pixmap isn't set.
      	(#13941)
      
      Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
      	to deal with setting the shape properly when scrolling arrows are
      	turned on, but not visible because there is sufficient space.
      	(#13432)
      
      Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
      	items with submenus, destroy the item along with the submenu.
      	(#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...'
      	properly.
      
      	* gtk/testgtk.c (menu_items): Add a dummy branch that we delete
      	later.
      
      Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
      	the focus widget sometimes wasn't drawn with the default if there
      	was no default widget.
      
      	* gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
      	unreference pixmaps.
      
      	* gtk/gtkstyle.c (gtk_style_realize): Reference colormap
      	for some extra safety.
      
      Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
      	the text of a cell to the old pointer value better, by
      	copying the new text before freeing the old text. Some code
      	cleanup. (#8079, Karl Nelson)
      
      Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
      	gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
      
      Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmenu.c (gtk_menu_remove): When removing an
      	item from a menu, check to see if it matches
      	menu->old_active_menu_item, and if so, unref and clear
      	old_active_menu_item (Patch from Pavel Cisler)
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset
      	menu_shell->active_menu_item, if it is the child being
      	removed. (Patch based on that of Gene Ragan, #50337)
      a1a252ce
  23. 26 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      adapt to handle PangoColor · ef4356b5
      Havoc Pennington authored
      2001-01-26  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
      
      	* gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
      	not offset by TREE_VIEW_HEADER_HEIGHT
      	(gtk_tree_view_tree_to_widget_coords): fix to not offset by
      	TREE_VIEW_HEADER_HEIGHT
      
      	* configure.in (included_loaders): for me, --with-included-loaders
      	generates the error "the specified loader yes does not exist",
      	i.e. the arg defaults to "yes", so change test for value ""
      	to test for value "yes", and include all loaders in that case.
      
      	* gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
      
      	* gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
      	handle TREE_VIEW_VERTICAL_SEPARATOR
      	(gtk_tree_view_bin_expose): fix to consider the row offset as
      	pointing halfway into vertical separator.
      	(gtk_tree_view_draw_node_focus_rect): ditto
      
      	* gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
      	--gtk-debug=updates, which causes gdk_window_set_debug_updates
      	(TRUE) to be called.
      
      	* gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
      	debug mode where the invalid region is colored in on invalidate,
      	so you can see the flicker and know whether your redraw code is
      	doing a good job.
      
      	* gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in
      	tree window coordinates (clip rect is in tree window coords)
      
      	* gtk/Makefile.am: add gtktreednd.[hc]
      
      	* gtk/gtkliststore.c: implement gtktreednd interfaces.
      
      	* gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
      	drag-and-drop data operations on a model (so we can set up tree
      	drag-and-drop automatically)
      
      	* gtk/testgtk.c: Add a window to change sensitivity in the
      	GtkLabel test; add a way to change the entry frame in GtkEntry
      	test
      
      	* gtk/gtkentry.c (gtk_entry_set_has_frame):
      	(gtk_entry_get_has_frame): new functions to remove the frame
      	around an entry
      	(gtk_entry_size_request): shrink requisition if no frame
      	(gtk_entry_draw_focus): don't draw frame if no frame
      
      	* gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
      	checks inside a cell renderer
      	(gtk_default_draw_option): ditto for options
      
      	* gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
      	children from the alignment, not the button
      	(gtk_tree_view_column_init): ref/sink the column, to emulate
      	GObject refcounting.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
      
      	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
      	Use theme functions to draw the toggles
      
      	* gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
      
      	* gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
      	GdkPangoAttrEmbossed to use in rendering insensitive text
      
      	* gdk/gdkpango.c (gdk_draw_layout_line): render new properties
      
      	* gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
      	using new GDK features
      ef4356b5
  24. 17 Jan, 2001 1 commit
    • Owen Taylor's avatar
      Remove unused variable. · 2a1e8b06
      Owen Taylor authored
      Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkdnd-x11.c: Remove unused variable.
      
      	* gtk/gtkdnd.c: Encapsulate storing and retrieving info
      	structures in functions. Fixes bug where gtk_dataset_*
      	was accidentally still being used in one place, causing
              every dest side event to be treated independently.
      
      	* gtk/gtkdnd.c: Remove last vestages of handling
      	::draw (fixes warning)
      
      	* gtk/gtkentry.[ch]: Add drag and drop support.
      
      	* gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
      	new function gtk_check_drag_threshhold() for checking
      	to check if (dx,dy) has exceeded the threshhold for starting
      	a drag and use it everywhere.
      2a1e8b06
  25. 04 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      Adapt to uscore-ification of gtktextiterprivate · c7826b5f
      Havoc Pennington authored
      2001-01-03  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
      
      	* gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use
      	of private functions; remove inclusion of private headers.
      
      	* gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this
      	function, so we don't need private functions in gtktextdisplay.c
      
      	* gtk/gtktextiterprivate.h: underscore-ification
      
      	* gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
      	to instead say "only useful to implement widgets"
      
      	* gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
      	GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
      	GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
      	This function was completely broken
      
      	* gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
      
      	* gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
      
      	* gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
      
      	* gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
      
      	* gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
      
      	* gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
      	gtk_paint_layout
      
      	* gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
      	gtk_paint_layout
      
      	* gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
      	Progress on bug 40103. Add draw_layout to draw a PangoLayout.
      	(struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
      	which were not implemented.
      
      	* gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
      	insert_pixbuf signal. Rename delete_text to delete_range since it
      	also deletes pixbufs and child anchors. This almost closes bug
      	40245 (still need to deal with child anchors)
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
      	insert_pixbuf, change signal names as appropriate, change types of
      	signals taking marks/tags to have the specific type, not just
      	G_TYPE_OBJECT
      
      	* gtk/gtkmain.c (gtk_get_current_event_state): Add this function;
      	closes bug 40051
      
      	* gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
      	unnecessary remove_contents() call
      	(gtk_option_menu_class_init): add a "changed" signal, closes
      	bug 40039
      	(gtk_option_menu_update_contents): emit "changed" if the
      	active menu item changes
      
      	* gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
      	cast to GtkObject, reported by Jonas Borgstrom
      	(gdk_pixbuf_loader_finalize): don't close the loader on finalize;
      	we can't do stuff with side effects in finalize. Instead, spew a
      	warning if the loader isn't closed.
      
      	* gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
      	colormap in here, non-X ports probably need to sync to this change
      
      	* gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove
      	assertion that colormap != NULL, you can set the colormap to NULL
      	if you like.
      
      	* Makefile.am: remove gtk-config-2.0
      
      	* configure.in: Use pkg-config to locate GLib. Remove
      	separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
      	and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
      	Use pkg-config to locate Pango. Output correct Pango libs to
      	gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
      
      	* Makefile.am (pkgconfig_DATA): install only target-specific pc
      	files
      	(install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
      	X11 pc files
      
      	* gtk+-2.0.pc.in (Requires): require the GDK for the current target
      	unref from here
      c7826b5f
  26. 13 Dec, 2000 1 commit
    • Tim Janik's avatar
      doh, this was broken beyond believe. · 2c9eb3a5
      Tim Janik authored
      Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
      
      	* gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
      
      	* gtk/gtkbox.c: change property types from (u)long to (u)int for
      	::position and ::padding.
      
      	* gtk/gtkcontainer.c: make ::border_width an INT property.
      
      	* gtk/gtkpacker.c: make ::position an INT property.
      
      	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
      	guard against NULL h/v scrollbars, since this is used at construction
      	time.
      
      	* gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
      	internal gtk_clist_constructor().
      
      	* gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
      	gtk_ctree_constructor().
      
      	* gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
      	::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
      
      	* docs/reference/Makefile.am: fun stuff, disabled docs generation
      	again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
      
      	* gtk/gtkwidget.[hc]:
      	removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
      	and gtk_widget_get().
      	(gtk_widget_new): use g_object_new_valist().
      	(gtk_widget_set): use g_object_set_valist().
      
      	* gtk/gtkobject.[hc]:
      	removed gtk_object_arg_get_info(), gtk_object_getv(),
      	gtk_object_query_args(), gtk_object_newv(),
      	gtk_object_class_add_signals(),
      	gtk_object_class_user_signal_new(),
      	gtk_object_class_user_signal_newv(),
      	gtk_object_arg_set(), gtk_object_arg_get(),
      	gtk_object_args_collect(),
      	gtk_object_default_construct(),
      	gtk_object_constructed(),
      	GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
      	removed nsignals, signals and n_args members from GtkObjectClass.
      	(gtk_object_new): use g_object_new_valist().
      	(gtk_object_set): use g_object_set_valist().
      	(gtk_object_get): use g_object_get_valist().
      
      	* gtk/gtkcompat.h: define gtk_object_default_construct().
      
      	* gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
      	g_object_new().
      
      	* gtk/*.c: removed gtk_object_class_add_signals() from class_init()
      	fucntions, cleaned up method assignments (make sure your structures
      	are setup properly before calling out). removed all GTK_CONSTRUCTED
      	hacks ;)
      2c9eb3a5
  27. 09 Dec, 2000 1 commit
  28. 04 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      Remove "draw" virtual method and signal · 5995baab
      Havoc Pennington authored
      2000-12-02  Havoc Pennington  <hp@pobox.com>
      
      * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
      method and signal
      
      * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
      calls gdk_window_process_updates() to push the exposes through
      (gtk_widget_class_init): No more draw signal, no
      gtk_widget_real_draw()
      
      * gtk/gtkbin.c (gtk_bin_draw): remove
      
      * gtk/gtkbox.c (gtk_box_draw): remove
      
      * gtk/gtkbutton.c (gtk_button_draw): remove
      
      * gtk/gtkcalendar.c (gtk_calendar_draw): remove
      
      * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
      
      * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
      
      * gtk/gtkclist.c (gtk_clist_draw): remove
      
      * gtk/gtkentry.c (gtk_entry_draw): remove
      
      * gtk/gtkeventbox.c (gtk_event_box_draw): remove
      
      * gtk/gtkfixed.c (gtk_fixed_draw): remove
      
      * gtk/gtkframe.c (gtk_frame_draw): remove
      
      * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
      
      * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
      
      * gtk/gtklayout.c (gtk_layout_draw): remove
      
      * gtk/gtklist.c (gtk_list_draw): remove
      
      * gtk/gtklistitem.c (gtk_list_item_draw): remove
      
      * gtk/gtkmenu.c (gtk_menu_draw): remove
      
      * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
      
      * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
      
      * gtk/gtknotebook.c (gtk_notebook_draw): remove
      
      * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
      
      * gtk/gtkpacker.c (gtk_packer_draw): remove
      
      * gtk/gtkrange.c (gtk_range_draw): remove
      
      * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
      
      * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
      
      * gtk/gtktable.c (gtk_table_draw): remove
      
      * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
      
      * gtk/gtktext.c (gtk_text_draw): remove
      
      * gtk/gtktextview.c (gtk_text_view_draw): remove
      
      * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
      
      * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
      
      * gtk/gtktree.c (gtk_tree_draw): remove
      
      * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
      
      * gtk/gtktreeview.c (gtk_tree_view_draw): remove
      
      * gtk/gtkviewport.c (gtk_viewport_draw): remove
      
      * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
      
      * gtk/gtkvscale.c (gtk_vscale_draw): remove
      
      * gtk/gtkwindow.c (gtk_window_draw): remove
      5995baab
  29. 02 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      don't create dangling pointers to the appearance attributes from the line · 35876710
      Havoc Pennington authored
      2000-11-30  Havoc Pennington  <hp@pobox.com>
      
      * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
      dangling pointers to the appearance attributes from the
      line display
      
      * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
      width/height to mean "full width/height of drawable"
      
      * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
      click to select word/line
      
      * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters
      when getting log attrs. Get a slice, so that pixmaps and stuff
      are properly handled.
      
      * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
      paste into the selection (replaces selection now, previously
      crashed or added to selection). Reveals longstanding btree bug -
      select multiple lines, middle-click on the selection, boom. This
      isn't related to my changes though.
      
      * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
      PangoLogAttrs changes
      (gtk_entry_move_backward_word): ditto
      
              * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
      	functions return bool whether the iter moved onto a
      	dereferenceable position.
      
      	 * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
      	 functions for motion in terms of display lines.
      
      	 * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
      	 get the buffer a mark is inside
      35876710
  30. 16 Nov, 2000 1 commit
  31. 13 Nov, 2000 2 commits
    • Havoc Pennington's avatar
      Add an "invisible_char" argument to set the char displayed when visibility · 7768d1df
      Havoc Pennington authored
      2000-11-09  Havoc Pennington  <hp@pobox.com>
      
      * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char"
      argument to set the char displayed when visibility == FALSE
      (gtk_entry_create_layout): If !entry->visible, replace
      all chars with the "invisible char"
      
      * gtk/testgtk.c: Test the invisible_char deal
      7768d1df
    • Owen Taylor's avatar
      Fix warning when moving between paragraphs. · 549e225c
      Owen Taylor authored
      Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
      	Fix warning when moving between paragraphs.
      
      	* gtk/gtkentry.[ch]: Change move => move_cursor,
      	delete => delete_from_cursor, insert => insert_at_cursor
      549e225c
  32. 12 Nov, 2000 2 commits
    • Owen Taylor's avatar
      Call gtk_widget_activate for GDK_Return. · 8f05462d
      Owen Taylor authored
      Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_key_press): Call
      	gtk_widget_activate for GDK_Return.
      
      	* gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
      	of preedit cursor position.
      8f05462d
    • Owen Taylor's avatar
      Make parent_class static. · dfba2269
      Owen Taylor authored
      Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcellrenderertextpixbuf.c: Make parent_class
      	static.
      
      Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
      	gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c:
      	Add support for positioning the cursor within the preedit string.
      
      Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextview.c: Check for bindings after passing
      	events to im context filter.
      
      Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextlayout.c (add_preedit_attrs): Handle
      	empty attribute lists properly.
      
      Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/queryimmodules.c (main): Return non-zero exit
      	status if errors were encountered querying any
      	modules.
      
      Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
      	don't include gtkthemes.h.
      
      	* gtk/testgtk.c gtk/testtext.c: Set environment variables
      	to point
      
      	* gtk/Makefile.am: Add new .c and .h files, build
      	gtk-query-immodules and use it to create a gtk.immodules
      	file for use of test programs.
      
      	* gtk/gtkpreview.c: remove extra blank line.
      
      Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table):
      	Add the ability to add extra tables beyond the default
      	one, and also the ability to have compose sequences
      	that are prefixes of other compose sequences.
      
      	* gtk/gtkimcontextsimple.c: Export a preedit string which
      	consists of possible candidates for keystrokes that have
      	been entered but not yet committed.
      
      	* gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
      	gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
      
      	* gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems):
      	Add a function to add input-method switching menu items
      	to a menu.
      
      	* gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
      	when switching input methods.
      
      	* gtk/gtkimcontextsimple.[ch]: Change the format of
      	the compose table to allow compose tables of different
      	lengths / sequence.
      
      Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkimmodule.[ch]: Support routines for loading
      	GtkIMContext implementations dynamically at runtime.
      
      	* gtk/queryimmodules.c: Program to query the available
      	input modules and write the results into a file.
      
      	* gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
      	extra config options "im_module_file" (cache file for
      	input method modules), and "im_module_path" - path
      	to look for modules when generating cache file.
      
      	This doesn't scale.
      
      Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the
      	generic	code from gtkthemes into a new abstraction
      	GtkModule which has the logic for implementing
      	a loadable module which implements a number of
      	GObject types.
      
      Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkeditable.[ch]: Convert GtkEditable from
      	a class into an interface
      
      	* gtk/gtkoldeditable.[ch]: Move the old editable
      	implementation into here, so legacy widgets can
      	still rely on the implemenation. GtkOldEditable
      	exports GtkEditable. Make selection handling
      	code use new text conversion functions (and
      	handle UTF-8 as a side-effect). Use GtkClipboard
      	for CLIPBOARD.
      
      	* gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
      	Adopt to match above changes.
      
      	* gtk/gtkentry.[ch]: Implement GtkEditable directly,
      	avoid GtkOldEditable implementation. Restructure
              to reduce number of places that modify state directly.
      	Move to GtkBindingSet. Display the preedit string.
      	Queue recomputation of PangoLayout and scroll position
      	to improve effiency of doing complex changes naively.
      	Add a menu with cut/copy/paste and input method selection.
      
      Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
      	to set preedit string and attributes; display preedit string by
      	inserting string and attributes at cursor when creating the
      	GtkTextLineDisplay.
      
      	* gtk/gtktextlayout.c: Move all conversions between byte
      	positions in PangoLayout and GtkTextIter into new functions
      	line_display_iter_to_index/index_to_iter that properly
      	handle the preedit string.
      
      	* gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
      	it to return const char * (eventually will end up
      	as GCONST char *, most likely.)
      
      	* gtk/gtktextview.[ch]: Handle the preedit string, call
      	gtk_im_context_reset() as necessary, add a menu to switch
      	input methods.
      
      	* gtk/gtktextlayout.[ch]: Remove useless
      	gtk_text_layout_get_log_attrs() function.
      dfba2269
  33. 31 Jul, 2000 1 commit
    • Owen Taylor's avatar
      Fix problem where computation was depending on widget->allocation instead · e9a03443
      Owen Taylor authored
      Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
      	was depending on widget->allocation instead of the width of text_area,
      	which was incorrect for subclasses like GtkSpinButton.
      
      	* gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
      	with width == 1 tests that should be width == -1.
      e9a03443