1. 07 Jun, 2001 3 commits
  2. 06 Jun, 2001 4 commits
    • Havoc Pennington's avatar
      add "inverted" property · cf3d1e1f
      Havoc Pennington authored
      2001-06-06  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
      
      	* gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
      	Down to move visually rather than logically, since it confuses
      	people. Add -/+ and Ctrl--/+ bindings for logical movement.
      cf3d1e1f
    • Alexander Larsson's avatar
      Fix up error messages. · 2122f8d4
      Alexander Larsson authored
      2001-06-06  Alex Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
      	Fix up error messages.
      2122f8d4
    • Owen Taylor's avatar
      Include gtkwidget.h (#55798, Karl Nelson) · 2304a86e
      Owen Taylor authored
      Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktooltips.h: Include gtkwidget.h
      	(#55798, Karl Nelson)
      
      	* gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
      	a valid latin-1 character. (Marc Lehmann, #35467)
      
      	* gdk/x11/gdkwindow-x11.c: Fix minor typo in comment.
      	(Marc Lehmann, #35467)
      2304a86e
    • Alexander Larsson's avatar
      Don't swap the order of the args to gtk_widget_destroyed. · 7e2541bd
      Alexander Larsson authored
      2001-06-05  Alex Larsson  <alexl@redhat.com>
      
      	* demos/gtk-demo/appwindow.c (do_appwindow):
      	Don't swap the order of the args to gtk_widget_destroyed.
      7e2541bd
  3. 05 Jun, 2001 14 commits
    • Havoc Pennington's avatar
      rename from gtk_text_iter_reorder · ec6baad4
      Havoc Pennington authored
      2001-06-05  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextiter.c (gtk_text_iter_order): rename from
      	gtk_text_iter_reorder
      ec6baad4
    • Alexander Larsson's avatar
      Don't crash when the properties window is destroyed. · 56984ab2
      Alexander Larsson authored
      2001-06-05  Alex Larsson  <alexl@redhat.com>
      
      	* tests/testgtk.c (destroy_properties):
      	Don't crash when the properties window is destroyed.
      
      	* gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
      	Use with_mnemonics to handle the case of stock items with
      	underscores in them.
      56984ab2
    • Havoc Pennington's avatar
      rename from gtk_text_iter_reorder · e426751e
      Havoc Pennington authored
      2001-06-05  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextiter.c (gtk_text_iter_order): rename from
      	gtk_text_iter_reorder
      e426751e
    • Havoc Pennington's avatar
      new function · 5e23d97d
      Havoc Pennington authored
      2001-06-05  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
      5e23d97d
    • Havoc Pennington's avatar
      clamp the value to the range that was set · b32e7c9b
      Havoc Pennington authored
      2001-06-05  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value
      	to the range that was set
      
      	* gtk/gtkrange.c: add value_changed signal, primarily
      	intended for use with GtkScale
      	(gtk_range_set_increments): new function
      	(gtk_range_set_range): new function with weird name
      	(gtk_range_set_value): new function
      	(gtk_range_get_value): new function
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename
      	from gtk_spin_button_get_value_as_float(). Compat #define
      	added for get_value_as_float.
      
      	* gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
      
      	* gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
      
      2001-06-05  Havoc Pennington  <hp@redhat.com>
      
      	* test-loaders.c (main): use putenv not setenv, reported by
      	 Armin Theissen
      b32e7c9b
    • Jonathan Blandford's avatar
      Fix bug #55573 · 451b2243
      Jonathan Blandford authored
      Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
      451b2243
    • Owen Taylor's avatar
      Deprecate gtk_widget_set(). · 192c1756
      Owen Taylor authored
      Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.h: Deprecate gtk_widget_set().
      
      	* tests/testgtk.c (create_tooltips): Remove usage of
      	gtk_widget_set().
      192c1756
    • 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
    • Erwann Chenede's avatar
    • Jonathan Blandford's avatar
      Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>. · f3f7dd9e
      Jonathan Blandford authored
      Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
      	Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
      	(gtk_tree_view_column_set_min_width): ditto.
      f3f7dd9e
    • Owen Taylor's avatar
      s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks) · 04de6401
      Owen Taylor authored
      Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS):
      	s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
      
      Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
      	gtk_clist_thaw().
      04de6401
    • Owen Taylor's avatar
      Improve docs for GtkStateType. (Fixes #55751, among other things.) · 284def64
      Owen Taylor authored
      Tue Jun  5 10:54:48 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/tmpl/gtkenums.sgml: Improve docs for GtkStateType.
      	(Fixes #55751, among other things.)
      284def64
    • Havoc Pennington's avatar
      Ignore releases for buttons 6, 7 · 5b2f2133
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@pobox.com>
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
      	releases for buttons 6, 7
      5b2f2133
    • Havoc Pennington's avatar
      Fix a search-and-replace screwup (s/CHECK/SEPARATOR/ gone awry). Patch · 96d2d801
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
      	(s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
      	#55562
      96d2d801
  4. 04 Jun, 2001 13 commits
    • Havoc Pennington's avatar
      handle case where text_view->layout == NULL by assuming its size is 0, · 2cf4b8ad
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_size_request): handle case
      	where text_view->layout == NULL by assuming its size is 0,
      	i.e. same as if we haven't done any reflow. Reported by
      	Hidetoshi Tajima #55448
      2cf4b8ad
    • Havoc Pennington's avatar
      support button 6 and 7 for scroll left/right, from Thomas Broyer · 5d1c5446
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
      	and 7 for scroll left/right, from Thomas Broyer
      5d1c5446
    • Havoc Pennington's avatar
      Handle case where we need to parse the xsetting as if it were an RC file · 1b3c9214
      Havoc Pennington authored
      2001-05-10  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtksettings.c (gtk_settings_get_property): Handle case where
      	we need to parse the xsetting as if it were an RC file string.
      
      	* gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
      	value of palette from settings, not from static variable
      
      	* gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
      	xsettings translation table
      
      	* gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because
      	hardcoding the toolbar style conflicts with new customizable
      	toolbar style philosophy
      	(gtk_toolbar_class_init): add settings for default toolbar style;
      	these are used unless the app specifically forces a toolbar style
      
      	* gtk/gtksettings.c (settings_install_property_parser): only
      	return at the start if we warn and parser == NULL
      
      	* gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
      	palette changed handler so we don't notify dead color selections
      
      	* gtk/gtkstyle.c (gtk_default_draw_shadow): handle
      	xthickness/ythickness of 0 or 1 properly
      	(gtk_default_draw_resize_grip): clear the background behind the
      	resize grips, and align to bottom right if we square the
      	area to be drawn.
      
      	* gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on
      	statusbar label to 1, so it doesn't make toplevels resize oddly
      	(gtk_statusbar_size_request): add grip size to request
      	(gtk_statusbar_size_allocate): hack so the hbox still works with
      	the grip size in the request
      
      	* gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix
      	bug where showing all on a toplevel makes the toolbar
      	button text appear despite the toolbar mode
      
      	* gtk/gtkmenubar.c: add internal padding style property
      
      	* gtk/gtktoolbar.c: Add internal padding style property; add
      	shadow type style property
      
      	* gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
      	state; and put Container::border_width outside the frame
      
      	* gtk/gtktextview.c: don't draw focus rectangle if we're in
      	interior focus mode, we just use blinking cursor
      1b3c9214
    • Havoc Pennington's avatar
      Make gdk-pixbuf have same version number as GTK · 9cc992b6
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* configure.in: Make gdk-pixbuf have same version number as GTK
      9cc992b6
    • Havoc Pennington's avatar
      Get rid of stupid g_return_if_fail on digits greater than 6. If there · 5c7c11ce
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on
      	digits greater than 6. If there actually are limits (which there
      	likely aren't), should clamp to them not warn.
      	(gtk_spin_button_new_with_range): don't take log of 0
      	(gtk_spin_button_size_request): use digits to compute size
      	request, rather than step increment.
      
      	* tests/testgtk.c (create_spins): test larger values of digits
      
      	* gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
      	font on map not expose, so we don't get weirdness during scrolling
      5c7c11ce
    • Havoc Pennington's avatar
      Apply fix from Sam Solon, bug #54577, update value even if not drawable. · 2d1f353a
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
      	Sam Solon, bug #54577, update value even if not drawable.
      2d1f353a
    • Havoc Pennington's avatar
      remove C++ comment, reported by Dan McNichol · def01f6c
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* gdk-pixbuf-xlibrgb.c (xlib_rgb_init): remove C++ comment,
      	reported by Dan McNichol
      def01f6c
    • Havoc Pennington's avatar
      patch from Szekeres Istvan, bug #52560 · 47af28ac
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* io-pnm.c (pnm_skip_whitespace): patch from Szekeres Istvan,
      	bug #52560
      47af28ac
    • Havoc Pennington's avatar
      change SCROLL_RIGHT to SCROLL_LEFT, reported by Thomas Broyer. · a6eec278
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
      	SCROLL_LEFT, reported by Thomas Broyer.
      a6eec278
    • Havoc Pennington's avatar
      Process updates immediately, to prevent funny lag effect when scrolling, · 31a25807
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkrange.c (gtk_range_adjustment_value_changed):
      	Process updates immediately, to prevent funny lag effect
      	when scrolling, at some mild potential efficiency cost.
      31a25807
    • Havoc Pennington's avatar
      on middle click, center slider on the click. · cfdca30c
      Havoc Pennington authored
      2001-06-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkrange.c (gtk_range_button_press): on middle click, center
      	slider on the click.
      cfdca30c
    • Owen Taylor's avatar
      Remove GtkArgSetFunc, GtkArgGetFunc. · 6a230f1f
      Owen Taylor authored
      Mon Jun  4 15:08:21 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtk-overrides.txt: Remove GtkArgSetFunc, GtkArgGetFunc.
      6a230f1f
    • Havoc Pennington's avatar
      make this special-case hscale/vscale details, so we can use it for · 42f429be
      Havoc Pennington authored
      2001-06-03  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
      	hscale/vscale details, so we can use it for scrollbar as well.
      
      	* tests/testgtk.c (reformat_value): honor digits from GtkScale
      
      	* gtk/gtkenums.h (GtkTroughType): Remove this enum
      	(GtkScrollType): add START and END from GtkTroughType
      
      	* gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
      	its x/y arguments
      
      	* gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
      	gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
      	gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
      	gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
      	gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
      
      	Notable changes in the process:
      
      	- stepper_size style property is the height for vertical
      	  ranges, width for horizontal; the other dimension matches
      	  the trough size
      	- add ability to do NeXT-style steppers (and several other styles
      	  that don't make any sense)
      	- added min_slider_length, fixed_slider_length properties to
                GtkScrollbar
              - cleaned some private (or at least useless) functions out of
                gtkscale.h
              - moved bindings to GtkScale from subclasses, even arrow keys,
      	  since blind users don't know scale orientation.
              - change move_slider action signal to use new GtkScrollType,
      	  remove GtkTroughType argument
      	- digits rounds the values a range will input to the given
      	  number of decimals, but will not try to force adjustment
      	  values set by other controllers. That is, we no longer
      	  modify adjustment->value inside a value_changed handler.
      	- added getters for GtkScale setters
              - middle-click begins a slider drag
      42f429be
  5. 01 Jun, 2001 5 commits
    • Jonathan Blandford's avatar
      Initial stab at getting the focus code to work. · 741c71eb
      Jonathan Blandford authored
      Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
      	getting the focus code to work.
      	(gtk_tree_view_class_init): Add a bunch of keybindings.
      
      	* gtk/gtktreeviewcolumn.c
      	(gtk_tree_view_column_set_cell_data_func):
      	s/GtkCellDataFunc/GtkTreeCellDataFunc.
      	(_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
      	of "properties_changed" to help justify the death of the latter
      	signal. (-:
      
      	* tests/testtreefocus.c (main): Let some columns be focussable to
      	test focus better.
      741c71eb
    • Jonathan Blandford's avatar
      Initial stab at getting the focus code to work. · 11043de6
      Jonathan Blandford authored
      Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
      	getting the focus code to work.
      	(gtk_tree_view_class_init): Add a bunch of keybindings.
      
      	* gtk/gtktreeviewcolumn.c
      	(gtk_tree_view_column_set_cell_data_func):
      	s/GtkCellDataFunc/GtkTreeCellDataFunc.
      	(_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
      	of "properties_changed" to help justify the death of the latter
      	signal. (-:
      
      	* tests/testtreefocus.c (main): Let some columns be focussable to
      	test focus better.
      11043de6
    • 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
    • Owen Taylor's avatar
      Fix notifications on non-existant "enable_arrow_keys". (#53753, Skip · ad88113f
      Owen Taylor authored
      Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix
      	notifications on non-existant "enable_arrow_keys".
      	(#53753, Skip Montanaro)
      ad88113f
    • Owen Taylor's avatar
      Add GDK_TYPE_RECTANGLE. · 1a6efe96
      Owen Taylor authored
      Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
      	GDK_TYPE_RECTANGLE.
      
      	* gtk/gtkwidget.c (gtk_widget_class_init): Fix type
      	of allocation argument be GDK_TYPE_RECTANGLE.
      1a6efe96
  6. 31 May, 2001 1 commit