summaryrefslogtreecommitdiff
path: root/docs
Commit message (Collapse)AuthorAgeFilesLines
* up version to 1.3.7, interface age 0, binary age 0. depend on glib 1.3.7.Tim Janik2001-06-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Jun 28 17:18:41 2001 Tim Janik <timj@gtk.org> * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface age 0, binary age 0. depend on glib 1.3.7. * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack. * gtk/gtkmenubar.c: same here. * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival. * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage. * gtk/gtkentry.c (gtk_entry_focus_in): same here. * gtk/gtkmenubar.c (add_to_window): likewise. * gtk/gtktextbtree.c: and here... * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing. * gtk/gtktoolbar.c (gtk_toolbar_init): once more. * gtk/gtktreemodel.c (connect_ref_callbacks): and another time. * gtk/gtktreeviewcolumn.c: (_gtk_tree_view_column_set_tree_view): yet again. * demos/gtk-demo/images.c (progressive_timeout): demonstrate signal connections without g_signal_connect_data(). * demos/gtk-demo/stock_browser.c (do_stock_browser): second demo of the matter. * demos/testpixbuf.c (main): running out of equality phrases for the ChangeLog, but had to adapt connections here as well. * demos/testanimation.c (progressive_timeout): and for the fun of it, tackled this the same way. * tests/testtext.c (create_view): ok, it's becoming a pain at this point, but had enough enery for one more fix. * tests/testtreecolumns.c (main): stand up man, do your work! * tests/testtreeview.c (set_columns_type): ok, this is the last file i fix, either that's been all of it or CVS gtk is broken yet again.
* new function for mapping a window without fooling with stacking order, butHavoc Pennington2001-06-283-6/+8
| | | | | | | | | | | | | | | | | | | | | | 2001-06-19 Havoc Pennington <hp@pobox.com> * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function for mapping a window without fooling with stacking order, but updating the "withdrawn" flag * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event filtering as soon as possible, moving move resize and wmspec_check handling after the event filter. Make default filter apply to all events, not just those with no GdkWindow wrapped around the X window. Fix a FIXME about how the window could be a pixmap using RTTI; this of course assumes GDK_IS_WINDOW() is optimized. Also, be robust against events not on a known GdkWindow. * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server, gdk_x11_ungrab_server): export reference-counted server grabs, so other people can grab server over a GDK function that also does so.
* use gdk_pixbuf_new_from_stream(). fixed up item factory so inlined pixbufsTim Janik2001-06-264-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | Tue Jun 26 10:04:30 2001 Tim Janik <timj@gtk.org> * gtk/gtkiconfactory.c: * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up item factory so inlined pixbufs actually work. Tue Jun 26 09:48:02 2001 Tim Janik <timj@gtk.org> * Makefile.am (noinst_PROGRAMS): get rid of make-inline-pixbuf * gdk-pixbuf-data.[hc]: provide gdk_pixbuf_new_from_stream() instead from gdk_pixbuf_new_from_inline(). * gdk-pixdata.[hc]: auxillary GdkPixdata structure, public installed API for applications that need to serialize/deserialize on their own (gimp, BEAST). * gdk-pixbuf/gdk-pixbuf-csource.c: provide publically installed program that can dump images in CSource format and Pixbuf stream format. supports RLE encoding, MACRO formatting etc... invoke with --help.
* Revert inline-pixbuf changes until Tim comes back to fix missing filesOwen Taylor2001-06-264-14/+13
|
* hm, second attempt. it's fight CVS time again.Tim Janik2001-06-264-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | Tue Jun 26 09:48:02 2001 Tim Janik <timj@gtk.org> * Makefile.am (noinst_PROGRAMS): get rid of make-inline-pixbuf * gdk-pixbuf-data.[hc]: provide gdk_pixbuf_new_from_stream() instead from gdk_pixbuf_new_from_inline(). * gdk-pixdata.[hc]: auxillary GdkPixdata structure, public installed API for applications that need to serialize/deserialize on their own (gimp, BEAST). * gdk-pixbuf/gdk-pixbuf-csource.c: provide publically installed program that can dump images in CSource format and Pixbuf stream format. supports RLE encoding, MACRO formatting etc... invoke with --help. Tue Jun 26 10:04:30 2001 Tim Janik <timj@gtk.org> * gtk/gtkiconfactory.c: * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up item factory so inlined pixbufs actually work.
* s/RESIZEABLE/RESIZABLE/Havoc Pennington2001-06-254-19/+18
| | | | | | | | | 2001-06-25 Havoc Pennington <hp@redhat.com> * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c: s/RESIZEABLE/RESIZABLE/ * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
* Add note about child property changes.Owen Taylor2001-06-251-0/+17
| | | | | | | Sun Jun 24 22:15:16 2001 Owen Taylor <otaylor@redhat.com> * docs/Changes-2.0.txt: Add note about child property changes.
* Add a special size for drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)Owen Taylor2001-06-256-69/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Jun 24 21:34:32 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32) * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem with un'reffing wrong list reported by Jeff Franks. * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix. * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND for the default icon. Remove inline XPM. * gtk/gtkstock.h gtk/gtkiconfactory.c: Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new is used for GTK_STOCK_DND, but it is a bit too small.) * gtk/stock-icons/stock_dnd_multiple.png gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs. * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return TRUE when starting a drag. In other cases, we are just observing. (#52995) * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add function to set the icon for a drag from a GdkPixbuf or stock ID. * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): Likewise, for drag sources. * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon. (Now should be done using the stock system.)
* Fix stupid error introduced last night that was making things decidedlyOwen Taylor2001-06-242-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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().
* Handle the case without XKB properly.Owen Taylor2001-06-211-1/+2
| | | | | | | | | | | | | | | | Thu Jun 21 13:42:01 2001 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle the case without XKB properly. * gtk/gtkrc.c (gtk_rc_set_default_files): Remove unused gtk_rc_auto_parse variable. * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt: Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no longer needed with GdkPixbuf. * gtk/gtkrc.c (_gtk_rc_init): Make private.
* Update a bit.Owen Taylor2001-06-2118-522/+534
| | | | | | | | Thu Jun 21 12:31:29 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtk-sections.txt: Update a bit. * Makefile.am: build GTK+ docs.
* fix PROP_EVENTS.Tim Janik2001-06-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Jun 18 02:00:49 2001 Tim Janik <timj@gtk.org> * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS. * gtk/Makefile.am: * gtk/gtk.h: disabled GtkPacker compilation. * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these. * gtk/gtknotebook.c: * gtk/gtktable.c: * gtk/gtkbox.c: ported this over to child properties. * gtk/gtksettings.c: fetch class properties via g_object_class_list_properties(). * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the child arg interface. use gobjectnotifyqueue.c for child property notification. * gtk/gtkwidget.[hc]: provide necessary means for container child properties, i.e. ::child_notify signal, gtk_widget_freeze_child_notify(), gtk_widget_child_notify(), gtk_widget_thaw_child_notify(). * tests/testgtk.c: removed inferior property handling code, for property editing, a generic module should be used, and GLE coincidentally fullfills that purpose. * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc needs to be adapted to g_object_class_list_properties() before this builds again.
* Docs fixups, and:Havoc Pennington2001-06-155-10/+24
| | | | | | | | | 2001-06-14 Havoc Pennington <hp@redhat.com> Docs fixups, and: * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with GTK_DISABLE_DEPRECATED
* fix other typoHavoc Pennington2001-06-141-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | 2001-06-14 Havoc Pennington <hp@redhat.com> * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo * gtk/gtktextbtree.c: don't leak node data all over the place. * demos/gtk-demo/main.c (main): create fontify tags for the right buffer * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs to mention tags in the same table can't have the same name, suggested by Skip Montanaro 2001-06-11 Havoc Pennington <hp@redhat.com> * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning for trying to add two tags with same name to the tag table * demos/gtk-demo/main.c (main): fix colors ;-)
* Add some example config files that can be used with the URW fonts.Alexander Larsson2001-06-141-2/+7
| | | | | | | | | | 2001-06-14 Alexander Larsson <alexl@redhat.com> * docs/README.linux-fb: Add some example config files that can be used with the URW fonts. * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): Set up the color ramps for DirectColor mode.
* UpdatesHavoc Pennington2001-06-134-3/+4
| | | | | | | | | | 2001-06-11 Havoc Pennington <hp@redhat.com> * NEWS: Updates * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6 * gtk/Makefile.am: glib_genmarshal already contains top_builddir
* add read-only "scroll_offset" property for notification when the layoutHavoc Pennington2001-06-091-0/+5
| | | | | | | | | | | | | | | | | 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
* added this functionHavoc Pennington2001-06-083-10/+10
| | | | | | | | | | 2001-06-08 Havoc Pennington <hp@redhat.com> * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this function * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added this function
* geez, don't call g_list funcs on GSListHavoc Pennington2001-06-084-9/+31
| | | | | | | | | | | | | | | | | | | | | | 2001-06-08 Havoc Pennington <hp@redhat.com> * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez, don't call g_list funcs on GSList * gtk/gtkwidget.c (gtk_widget_child_focus): replaces gtk_container_focus(), since some widgets have focusable locations which are not other widgets. These widgets should not have to be containers just to manage the focus. For example, GtkHSV is currently a container for no good reason. Also, this cleans up the "if (is_container && is_sensitive && is_drawable) container_focus ()" mess in widget implementations. * gtk/gtkcontainer.c (gtk_container_focus): deprecate this function, and have it just call gtk_widget_child_focus(). * gtk/gtkhsv.c: derive from widget not container Throughout: fix to reflect GtkContainer::focus change
* warn if row/cols are out of range. Fix bug #55921Jonathan Blandford2001-06-082-1/+8
| | | | | | | | | | | | | | | | | | Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of range. Fix bug #55921 * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug (#55920). Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of range. Fix bug #55921 * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug (#55920).
* Add a direction-changed signal, and gdk_keymap_get_current_direction().Owen Taylor2001-06-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com> * gdk/gdkkeys.[ch]: Add a direction-changed signal, and gdk_keymap_get_current_direction(). * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track the current locked group, use it to set the keymap direction. * gtk/gtksettings.c: Add a new gtk-split-cursor setting to determine whether we draw a split cursor or use a jumping cursor based on the current direction. * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]: Obey the split cursor setting. Fri Jun 8 11:57:50 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkimmulticontext.c (activate_cb): Only activate when toggling on, not when toggling off... (#55906) Wed Jun 6 10:37:07 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c (gtk_widget_set_double_buffered): s/gdk_window_begin_paint/gdk_window_begin_paint_region/ in docs. (#55812, Vitaly Tishkov)
* subst GLIB_GENMARSHAL, GOBJECT_QUERY, GLIB_MKENUMS variablesHavoc Pennington2001-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-06-07 Havoc Pennington <hp@redhat.com> * m4macros/glib-2.0.m4: subst GLIB_GENMARSHAL, GOBJECT_QUERY, GLIB_MKENUMS variables * gmodule-2.0.pc.in: add gmodule_supported variable * glib-2.0.pc.in: add glib_genmarshal, gobject_query, glib_mkenums variables * configure.in: put G_MODULE_SUPPORTED value into .pc files * autogen.sh: support AUTOGEN_SUBDIR_MODE * Makefile.am: add -uninstalled.pc.in to EXTRA_DIST 2001-06-07 Havoc Pennington <hp@redhat.com> * pango/Makefile.am: add libpango.la to _DEPENDENCIES for the other libs * configure.in: use AM_PATH_GLIB_2_0 * autogen.sh: support AUTOGEN_SUBDIR_MODE * Makefile.am: dist the .pc.in files 2001-06-07 Havoc Pennington <hp@redhat.com> * atk/Makefile.am: use @GLIB_GENMARSHAL@ so we can use uninstalled glib-genmarshal * configure.in: rearrange the library checks to support uninstalled linking * autogen.sh: add support for AUTOGEN_SUBDIR_MODE * atk-uninstalled.pc.in: new file, allows linking to uninstalled ATK in giant GTK tarball 2001-06-07 Havoc Pennington <hp@redhat.com> * tests/Makefile.am: add missing -I flag * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc. * configure.in: use pkg-config to see if GModule is supported; fix to properly turn on included loaders when GModule isn't supported; don't use AC_CHECK_LIB when libs are not installed yet * autogen.sh: add support for AUTOGEN_SUBDIR_MODE * Makefile.am (SUBDIRS): add m4macros subdir * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in dependencies also.
* add "inverted" propertyHavoc Pennington2001-06-061-0/+5
| | | | | | | | | | 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.
* rename from gtk_text_iter_reorderHavoc Pennington2001-06-054-11/+13
| | | | | | | 2001-06-05 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (gtk_text_iter_order): rename from gtk_text_iter_reorder
* clamp the value to the range that was setHavoc Pennington2001-06-056-14/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Improve docs for GtkStateType. (Fixes #55751, among other things.)Owen Taylor2001-06-052-9/+18
| | | | | | | 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.)
* Handle case where we need to parse the xsetting as if it were an RC fileHavoc Pennington2001-06-044-22/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove GtkArgSetFunc, GtkArgGetFunc.Owen Taylor2001-06-042-17/+4
| | | | | | Mon Jun 4 15:08:21 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtk-overrides.txt: Remove GtkArgSetFunc, GtkArgGetFunc.
* make this special-case hscale/vscale details, so we can use it forHavoc Pennington2001-06-044-21/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Initial stab at getting the focus code to work.Jonathan Blandford2001-06-011-0/+1
| | | | | | | | | | | | | | | | | | 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.
* Correct typoe when describing order of composition. (#53371, SkipOwen Taylor2001-05-302-1/+6
| | | | | | | Wed May 30 16:56:07 2001 Owen Taylor <otaylor@redhat.com> * gtk/tmpl/gtkrc.sgml (pattern): Correct typoe when describing order of composition. (#53371, Skip Montanaro)
* Validate value from GDK settings against parameter spec.Owen Taylor2001-05-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Wed May 30 15:56:30 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtksettings.c (gtk_settings_get_property): Validate value from GDK settings against parameter spec. * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments to temporary values and use g_value_transform(), since thinking that GValue was going to be easy or efficient to use was, of course, a mistake. * gtk/gtksettings.c: Add cursor blink setting. * gdk/x11/gdkevents-x11.c: Add cursor blink X settings. * gtk/gtkentry.c: Add cursor blinking. * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use cursor blink global settings. * gtk/gtkentry.c (gtk_entry_button_press): Add notification for :text_position in places where it is missing.
* make hanlder id a gulong as in GSignal.Tim Janik2001-05-272-10/+9
| | | | | | | Sun May 20 20:07:35 2001 Tim Janik <timj@gtk.org> * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a gulong as in GSignal.
* get sizes an icon set can render without falling back to missing imageHavoc Pennington2001-05-253-18/+469
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-25 Havoc Pennington <hp@redhat.com> * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon set can render without falling back to missing image icon * gtk/gtktextview.c (gtk_text_view_size_request): request full size of text, instead of random values * gtk/gtktreeview.c (gtk_tree_view_size_request): request full size of tree view, instead of random values * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback image in an appropriate size * gtk/gtkstock.h: Rename the stock items including _BUTTON_, etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/ Throughout: fix GTK_STOCK_BUTTON_ instances * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h, gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am: Add a bunch of new stock items/icons * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func): new function, convenience for inserting columns with a data func * gtk/gtkiconfactory.c: keep a list of all existing icon factories (_gtk_icon_factory_list_ids): use list of all factories to generate a list of all known IDs * gtk/gtkstock.c (gtk_stock_list_ids): replace gtk_stock_list_items() with a function that returns all IDs known including those for GtkIconFactory.
* New functionHavoc Pennington2001-05-258-2/+42
| | | | | | 2001-05-22 Havoc Pennington <hp@pobox.com> * gtk/gtkbin.c (gtk_bin_get_child): New function
* Only show the separator if both children are present and visible.Owen Taylor2001-05-211-1/+0
| | | | | | | | | | Mon May 21 11:29:21 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtk{h,v,}paned.c: Only show the separator if both children are present and visible. * configure.in: Fixed reversed conditional causing all image libraries to be linked in.
* Improve error messages for X errors and losing connection to the X server.Havoc Pennington2001-05-201-0/+1
| | | | | | | 2001-05-11 Havoc Pennington <hp@pobox.com> * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and losing connection to the X server.
* Reset style attributes even if the widget isn't realized.Owen Taylor2001-05-182-10/+10
| | | | | | | | | Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtktextview.c (gtk_text_view_style_set): Reset style attributes even if the widget isn't realized. * demos/gtk-demo/main.c: Use a slightly smaller font.
* Add documentation about GtkSizeGroup.Owen Taylor2001-05-1817-29/+205
| | | | | | | Fri May 18 12:28:08 2001 Owen Taylor <otaylor@redhat.com> * gtk/tmpl/gtksizegroup.sgml gtk/gtk-sections.txt gtk/gtk.types: Add documentation about GtkSizeGroup.
* docs, fixes bug #54144Havoc Pennington2001-05-1115-80/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-11 Havoc Pennington <hp@pobox.com> * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug #54144 * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes bug #54330 2001-05-11 Havoc Pennington <hp@pobox.com> * gtk/tmpl/gtkvruler.sgml, gtk/tmpl/gtkhruler.sgml: fix bug #54431 * gtk/tmpl/gtkdrawingarea.sgml: fix bug #54331 * gtk/tmpl/gtkenums.sgml: fix bug #54329, and update some other random things * gtk/gtk-sections.txt: updates * gtk/tmpl/gtkmenuitem.sgml: fix bug #54277 * gtk/tmpl/gtkradiomenuitem.sgml: fix bug #54323, #54324, #54325
* grum, gtk_type_class() is not GNUC_CONST it has the _important_ sideTim Janik2001-05-105-40/+63
| | | | | | | Fri May 11 01:05:00 2001 Tim Janik <timj@gtk.org> * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST it has the _important_ side effect of initializing a class.
* fix some shell typosHavoc Pennington2001-05-0715-207/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-04 Havoc Pennington <hp@redhat.com> * configure.in: fix some shell typos * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix * gtk/gtkimage.c: handle animations * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request border_width * 2, not just border_width * gtk/gtkscale.c: add "format_value" signal to allow people to override the way values are drawn. (gtk_scale_get_value_size): fix width/height mistake, and compute size from actual displayed text, not from made-up text. * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in signal registration * tests/testtext.c: Add "Remove all tags" menu item for testing * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement * demos/gtk-demo/main.c (main): add hack so we can find modules without installing gtk * demos/gtk-demo/textview.c (insert_text): demo font scaling * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling factor) (gtk_cell_renderer_text_set_property): remove some bogus g_object_notify * gtk/gtktexttag.c: add "scale" property which is a font scaling factor * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute to layout * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from gtk_text_iter_is_first 2001-05-04 Havoc Pennington <hp@redhat.com> * pixops/pixops.c (pixops_process): merge fix from stable: Patch from hoshem@mel.comcen.com.au to fix nonzero X offsets. Fixes bug #50371. * gdk-pixbuf/pixops/pixops.c (pixops_composite_nearest): merge from stable: Patch from OKADA Mitsuru <m-okada@fjb.co.jp> to fix confusion of using "src" instead of "p". (pixops_composite_color_nearest): Use a more accurate (and correct, to begin with) compositing method. This cures checks showing through on images with no alpha. * gdk-pixbuf.c (gdk_pixbuf_fill): fix bug that left some trailing bytes unfilled. * gdk-pixbuf-io.h: fix UpdatedNotifyFunc to use signed ints * gdk-pixbuf-loader.h (struct _GdkPixbufLoaderClass): Change area_updated signal to use signed ints. Removed animation-related signals. * io-gif.c, io-gif-animation.h, io-gif-animation.c: Massive rewrite action * gdk-pixbuf-animation.c: Add GdkPixbufAnimationIter to abstract all the pesky details. Remove old frame-based API. Make GdkPixbufAnimation an abstract base class, derived by the loaders.
* Add dependency on Atk for accessibility support.Owen Taylor2001-05-032-22/+3
| | | | | | | | | | | | | Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com> * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add dependency on Atk for accessibility support. * configure.in **/Makefile.am: Major reworking of substituted variables for CFLAGS/LIBS to make a lot more sane and keep the the compile/link lines a bit shorter. * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
* New default theme! A slighly improved version of the 2.0 Raleigh theme,Owen Taylor2001-05-011-1/+0
| | | | | | | | | | | | Mon Apr 30 20:29:27 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c: New default theme! A slighly improved version of the 2.0 Raleigh theme, with Windows-esque focus/drawing default. (GtkWidget::interior_focus defaults to TRUE.) * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
* moved GtkAnchorType and GtkSideType from gtkpacker.h to gtkenum.h.Tim Janik2001-04-293-22/+26
| | | | | | | | | | | | | | | | | | | | | | Sun Apr 29 03:02:02 2001 Tim Janik <timj@gtk.org> * gtk/gtkpacker.h: * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h to gtkenum.h. * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not handled in switch). * gtk/Makefile.am: (gtk.defs): generate enum portions with glib-mkenums. (gtktypebuiltins_evals.c): generate this with glib-mkenums. got rid of makeenums.pl and makeenums.awk in distributed tarballs. * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning addition. * docs/Changes-2.0.txt: keep a note on signal handlers now not getting emitted during the emission they were connected within.
* voc Pennington <hp@redhat.com>Havoc Pennington2001-04-285-39/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* fix warningHavoc Pennington2001-04-283-66/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove deprecation of gtk_window_set_default_size() until patch addingOwen Taylor2001-04-262-2/+0
| | | | | | | | | | | | Thu Apr 26 10:40:41 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size() until patch adding gtk_window_set_size() is recommitted. * **Makefile.am configure.in gdk/x11/gdkim-11.c gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c gtk/gtkrc.c: Remove all traces of -DX_LOCALE support. (#10784)
* Add note about GTK_ENABLE_BROKEN.Owen Taylor2001-04-253-2/+11
| | | | | | Wed Apr 25 12:33:03 2001 Owen Taylor <otaylor@redhat.com> * gtk/tmpl/gtktreeitem.sgml: Add note about GTK_ENABLE_BROKEN.
* set_decorations_hint and set_functions_hint were still in the headerHavoc Pennington2001-04-252-18/+16
| | | | | | | 2001-04-25 Havoc Pennington <hp@pobox.com> * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint were still in the header