1. 14 Dec, 2002 1 commit
  2. 25 Nov, 2002 1 commit
  3. 13 Oct, 2002 1 commit
    • Soeren Sandmann's avatar
      Documentation fixes. · a130f089
      Soeren Sandmann authored
      Sun Oct 13 18:50:14 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtkmenu.c, gtkmenu.sgml, gtkitemfactory.c, gdkwindow.c,
      	gtkwindow.c, gtkpaned.sgml, gtkdialog.c, gtkbox.h, gtkbutton.sgml,
      	gtktreemodel.sgml,gtktable.sgml, gtktable.c:
      
      	Documentation fixes.
      
      	#85719, #90759, #95169, Owen Taylor;
      	#89221, Yao Zhang, Matthias Clasen;
      	#95592, Joost Faassen;
      	#92637, Vitaly Tishkov;
      	#94616, Ben Martin;
      	#94772, sbaillie@bigpond.net.au;
      a130f089
  4. 11 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · f18d5d35
      Manish Singh authored
      Fri Oct 11 15:56:20 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkaccellabel.[ch] gtk/gtkaccessible.[ch] gtk/gtkbutton.[ch]
              gtk/gtkcheckbutton.[ch] gtk/gtkcolorseldialog.[ch] gtk/gtkdialog.[ch]
              gtk/gtkhandlebox.[ch] gtk/gtkinputdialog.[ch] gtk/gtkmessagedialog.[ch]
              gtk/gtktearoffmenuitem.[ch] gtk/gtktogglebutton.[ch]: Deprecation
              cleanup
      f18d5d35
  5. 03 Oct, 2002 1 commit
    • Owen Taylor's avatar
      Add a 'type' parameter, make public. · ef33adff
      Owen Taylor authored
      Thu Oct  3 14:13:33 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkevents.c (gdk_event_new): Add a 'type'
              parameter, make public.
      
              * gdk/gdkevents.c (gdk_event_copy): Copy the screen.
      
              * gdk/gdkevents.c gdk/linux-fb/gdkmain-fb.c
              gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c:
              _gdk_event_new() => gdk_event_new().
      
              * gdk/win32/gdkevents-win32.c (real_window_procedure):
              Fix event_private->screen breakage that results from evil
              encapsulation breakage here.
      
              * gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkcontainer.c
              gtk/gtkdialog.c gtk/gtkdnd.c gtk/gtkdrawingarea.c
              gtk/gtkimcontextsimple.c gtk/gtklist.c gtk/gtkmenu.c
              gtk/gtknotebook.c gtk/gtkplug.c gtk/gtkselection.c
              gtk/gtktext.c gtk/gtktreeitem.c gtk/gtktreeview.c
              gtk/gtkviewport.c gtk/gtkwindow-decorate.c gtk/gtkwindow.c
              tests/testgtk.c: Remove most usage of stack-allocated
              GdkEvent structures.
      
              * gtk/gtktreeview.c: Use a cut-and-paste of the full
              send_focus_event() from gtkwindow.c that does the necessary
              notification of the ::has-focus property and setting of
              the HAS_FOCUS flag.x
      
              * gtk/gtkdnd.c: Clean up some mess/duplicated code; removing
              an extraneous use of a GdkEvent.
      ef33adff
  6. 10 Jul, 2002 1 commit
  7. 18 Apr, 2002 1 commit
    • Matthias Clasen's avatar
      s/<!>/<!-- -->/g throughout the documentation to bring the produced · 1f75708d
      Matthias Clasen authored
      	* gtk/gtkitemfactory.c:
      	* gtk/gtkiconfactory.c:
      	* gtk/gtkwidget.c:
      	* gtk/gtkstyle.c:
      	* gtk/gtkrc.c:
      	* gtk/gtktreeviewcolumn.c:
      	* gtk/gtkdialog.c:
      	* gtk/gtktreemodel.c: s/<!>/<!-- -->/g throughout the
      	documentation to bring the produced Docbook closer to XML.
      
      	* gdk/tmpl/rgb.sgml:
      	* gdk/tmpl/general.sgml:
      	* gtk/tmpl/gtktogglebutton.sgml:
      	* gtk/tmpl/gtkaccellabel.sgml:
      	* gtk/tmpl/gtkradiobutton.sgml:
      	* gtk/tmpl/gtktreemodel.sgml:
      	* gtk/tmpl/gtkwidget.sgml:
      	* gtk/tmpl/gtkimage.sgml:
      	* gtk/tmpl/gtktooltips.sgml:
      	* gtk/tmpl/gtksignal.sgml:
      	* gtk/tmpl/gtkcombo.sgml:
      	* gtk/tmpl/gtkdnd.sgml:
      	* gtk/tmpl/gtksocket.sgml:
      	* gtk/tmpl/gtkdrawingarea.sgml:
      	* gtk/tmpl/gtkobject.sgml:
      	* gtk/tmpl/gtkpaned.sgml:
      	* gtk/tmpl/gtkmain.sgml: s/<!>/<!-- -->/g throughout the
      	documentation to bring the produced Docbook closer to XML.
      1f75708d
  8. 30 Jan, 2002 1 commit
    • Owen Taylor's avatar
      Try to make sure that we have some focused widget on map. (#50339) · 2a9af2ff
      Owen Taylor authored
      Wed Jan 30 13:55:59 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwindow.c (gtk_window_show): Try to make
      	sure that we have some focused widget on map. (#50339)
      
      	* gtk/gtkdialog.c (gtk_dialog_map): Handling picking
      	a focus widget here differently so that if a
      	response button gets picked, it's the default one.
      
      	* tests/testgtk.c (make_message_dialog): Set the
      	default response for the dialogs.
      2a9af2ff
  9. 08 Jan, 2002 1 commit
    • Matthias Clasen's avatar
      Doc typo fix. (#68172) · c1808baa
      Matthias Clasen authored
              * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
      
              * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
      
              * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
      
              * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
      
              * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
              gtk/gtkwidget.c (gtk_widget_get_toplevel,
              gtk_widget_push_composite_child), gtk/gtkdialog.c
              (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
              from messing up the indentation of inline examples.
      
              * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
              instead of getenv().
      
              * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
              gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
              gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
      
              * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
              gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
              Document.
      
              * gtk/tmpl/gtksocket.sgml: Mention gtk_socket_get_id()
              instead of GTK_WINDOW_XWINDOW().  (#68172)
      
              * gtk/gtk-sections.txt: Move functions which are documented
              as "private" or "internal" into Private subsections.
      
              * gtk/tmpl/gtkdnd.sgml, gtk/tmpl/gtkobject.sgml,
              gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtktooltips.sgml,
              gtk/tmpl/gtkwidget.sgml, gtk/tmpl/gtkclipboard.sgml,
              gtk/tmpl/gtkstyle.sgml, gtk/tmpl/gtkselection.sgml,
              gtk/tmpl/gtkfeatures.sgml: Minor markup fixes.
      
              * gtk/tmpl/gtksignal.sgml: Add link to GLib signal docs.
      
              * gtk/tmpl/gtkpreview.sgml, gtk/tmpl/gtktext.sgml,
              gtk/tmpl/gtktree.sgml: Remove "deprecated" from short desc.
      
              * gtk/tmpl/gtkrc.sgml: Correct names of default RC files.
      c1808baa
  10. 24 Dec, 2001 1 commit
  11. 13 Dec, 2001 1 commit
    • Matthias Clasen's avatar
      Markup fixes. · fc4a6b95
      Matthias Clasen authored
      
              * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
      
              * gdk-pixbuf-io.c: Markup fixes.
      
              * gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
              gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
              gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
              gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
              gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
              gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
              gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
              gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
              gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
              gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
              gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
              gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
              gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
              gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
              gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
              gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
              gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
      fc4a6b95
  12. 19 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Rename the GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the · e4be2240
      Owen Taylor authored
      Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
      	GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
      	GTK_OBJECT_DESTROYED() check macro.
      
      	* gtk/gtkbindings.c (gtk_bindings_activate): Remove
      	instances of GTK_OBJECT_DESTROYED() that weren't
      	needed any more.
      
      	* gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
      	for a connection to ::destroy.
      e4be2240
  13. 17 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Make gtkmarshal.list/gtkmarshal.h only for compatibility with GTK+-1.2; · a036c6e5
      Owen Taylor authored
      Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
      	gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
      	only for compatibility with GTK+-1.2; and deprecate it;
      	put all marshalers we actually use into gtkmarshalers.list
      	and use the _gtk_marshal_ prefix for these marshalers.
      a036c6e5
  14. 10 Nov, 2001 1 commit
    • Matthias Clasen's avatar
      Mass fixing of trivial doc bugs. (#63544, #57007, #64141, #63472, #57108, · 79e4b185
      Matthias Clasen authored
              * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
              gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c,
              gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.
              (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
      
              * gtk/tmpl/gtkaccellabel.sgml, gtk/tmpl/gtkcombo.sgml,
              gtk/tmpl/gtkentry.sgml, gtk/tmpl/gtkhscrollbar.sgml,
              gtk/tmpl/gtkvscrollbar.sgml, gtk/tmpl/gtktoolbar.sgml,
              gtk/tmpl/gtkdialog.sgml, gtk/tmpl/gtkstatusbar.sgml:
              Mass fixing of trivial doc bugs. (#55579, #56760, #58769, #55918,
              #64154, #60422, #54697)
      79e4b185
  15. 07 Nov, 2001 1 commit
    • Darin Adler's avatar
      Add g_return_if_fail. · 966fc7ed
      Darin Adler authored
      	* gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
      	(gtk_dialog_set_default_response): Add g_return_if_fail.
      966fc7ed
  16. 02 Nov, 2001 2 commits
  17. 20 Sep, 2001 1 commit
  18. 08 Sep, 2001 1 commit
    • Havoc Pennington's avatar
      default xscale/yscale to 0.0, not 0.5, 0.5 isn't useful · 9ddcb3e0
      Havoc Pennington authored
      2001-09-08  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtkalignment.c (gtk_alignment_class_init): default
      	xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
      
      	* tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
      
      	* gtk/gtktextiter.c: fix docs
      	(gtk_text_iter_spew): get rid of this
      
      	* gtk/gtklayout.c: docs
      
      	* gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
      	to center image and label together, instead of having image on
      	left and label centered, patch/suggestion from Jacob
      
      	* gtk/gtkdialog.c: docs
      
      2001-09-08  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/tmpl/gtklayout.sgml: docs
      
      	* gdk-pixbuf/gdk-pixbuf.sgml: remove the section on compiling
      	gdk-pixbuf since it isn't a standalone package anymore
      
      	* gtk/building.sgml: section on compiling GTK itself
      9ddcb3e0
  19. 23 Aug, 2001 1 commit
    • Owen Taylor's avatar
      Rename gtk_container_children() to gtk_container_get_children. Added · 991a7188
      Owen Taylor authored
      Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcontainer.[ch]: Rename gtk_container_children()
      	to gtk_container_get_children. Added deprecated compatibility
      	macro.	(Suggested by Vitaly Tishkov, #59051)
      
      	* gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
      	calls.
      991a7188
  20. 18 Jul, 2001 2 commits
    • Owen Taylor's avatar
      Patch from Matthias Clasen to remove remove all instances of · 4e2b60ac
      Owen Taylor authored
      Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/*.c: Patch from Matthias Clasen to remove remove
      	all instances of g_return_if_fail (foo != NULL); that are
      	immediately before a g_return_if_fail (GTK_IS_FOO (foo));
      	since the second check catches the NULL anyways.
      4e2b60ac
    • Owen Taylor's avatar
      Fix idles and timeouts to be properly surrounded by · b613a74c
      Owen Taylor authored
      Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
      	gtktreeview.c: Fix idles and timeouts to be properly surrounded by
      	GDK_THREADS_ENTER()/LEAVE() pairs.
      
      	* gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
      	to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
      	pairs. (Problem found by M. Meeks)
      b613a74c
  21. 06 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Patch from Gregory Merchan to add gtk_button_box_set_secondary(), which · 0b6c3f54
      Owen Taylor authored
      Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
      	Patch from Gregory Merchan to add
      	gtk_button_box_set_secondary(), which separates
      	the child into a separate group from the normal
      	buttons. (#56331)
      
      	* gtk/gtkdialog.c: Make help buttons secondary by
      	default.
      
      	* gtk/gtkbbox.c: Added a child property "secondary".
      
      	* gtk/testgtk.c: Turn on the help button for the
      	color selector to check that it properly appears
      	as secondary.
      0b6c3f54
  22. 29 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      Clip the retrieved image data to the screen, using a server grab to avoid · 0bee26c7
      Havoc Pennington authored
      2001-06-28  Havoc Pennington  <hp@pobox.com>
      
      	* gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
      	image data to the screen, using a server grab to avoid race
      	conditions.
      
      	* gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove
      	check for NULL return from gtk_image_new_from_stock(), it never
      	returns NULL.
      	(gtk_item_factory_create_item): fix bug where we parsed the stock
      	ID as an inline pixbuf
      
      	* gtk/gtktext.c (gtk_text_key_press): numeric keypad support
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
      	support (should be using binding set here)
      
      	* gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
      	support (should be using binding set here)
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad
      	support
      
      	* gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
      
      	* gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
      
      	* gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
      
      	* gtk/gtkimcontextsimple.c
      	(gtk_im_context_simple_filter_keypress): keypad
      
      	* gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad
      
      	* gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
      
      	* gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
      
      	* gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
      	should be binding-setted)
      
      	* gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
      
      	* gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
      
      	* gtk/gtkcalendar.c: numeric keypad fixes
      
      	* gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
      	support
      
      	* gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
      	screwup
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
      	clip the render area to the drawable's clip region in advance,
      	so we don't get data from the server that we don't need.
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
      	check return value of gdk_pixbuf_get_from_drawable(), fall back
      	to bilevel alpha if we can't get the pixbuf to composite against.
      
      	* gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
      
      	* gdk/gdkimage.c (gdk_image_get_colormap): add
      	gdk_image_set_colormap, gdk_image_get_colormap
      
      	* gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
      	take a region of the image, instead of converting the entire
      	image.
      
      	* gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
      	keybinding signal. Add default bindings for it. Add default
      	handler for show_help that shows the tooltip for the widget.
      
      	* gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
      	"close" keybinding signal, remove key press handler.
      
      	* gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
      	it's not our usual practice to leave a deprecated function around
      	with a runtime warning, plus we don't want it to appear in docs,
      	plus if we make them yellow no one will want to change them
      	anyhow.
      0bee26c7
  23. 25 May, 2001 1 commit
    • Havoc Pennington's avatar
      get sizes an icon set can render without falling back to missing image · 87684f95
      Havoc Pennington authored
      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.
      87684f95
  24. 30 Apr, 2001 1 commit
    • Owen Taylor's avatar
      Add an extra parameter use_text to gtk_paint_label() to deal with · 2d372c40
      Owen Taylor authored
      Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
      	  gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
      	  gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
                use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
      
      	* gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
      	  with GtkWidget::interior_focus = TRUE better.
      
      	* gtk/gtkbutton.c
      
      	* gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove
      	G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
      	change that had to be made with g_object_get.
      2d372c40
  25. 24 Apr, 2001 1 commit
    • Havoc Pennington's avatar
      handle 0-height empty/invisible lines. · b84d2f12
      Havoc Pennington authored
      2001-04-21  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
      	empty/invisible lines.
      
      	* gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
      	(gtk_text_iter_set_visible_line_index): new functions to set
      	indexes excluding invisible text
      
      	* gtk/gtktextlayout.c (line_display_iter_to_index): get visible
      	index
      
      	* gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
      	(gtk_text_iter_get_visible_line_offset): new functions to
      	get indexes excluding invisible text
      
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
      	bunch of extra padding that served no purpose
      
      	* gtk/gtkdialog.c: Make all the spacings configurable via style
      	properties, for chubbiness configuration in themes
      
      	* tests/testtext.c: fix path to the immodules.
      b84d2f12
  26. 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
  27. 07 Mar, 2001 2 commits
    • 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
    • Havoc Pennington's avatar
      new function, turns off decorations for a window. · 9d1e2a13
      Havoc Pennington authored
      2001-03-07  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
      	off decorations for a window.
      
      	* demos/gtk-demo/button_box.c (create_bbox): adapt to button box
      	changes
      
      	* gtk/gtklabel.c (gtk_label_get_layout_offsets): new function
      	to get location of PangoLayout inside the label, closes #51198
      
      	* gtk/testgtk.c (create_bbox): fix up button box usage
      
      	* gtk/testcalendar.c (create_calendar): fix up button box usage
      
      	* gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
      
      	* gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
      
      	* gtk/gtkhbbox.h: deprecations
      
      	* gtk/gtkvbbox.h: deprecations
      
      	* gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
      	emulate deprecated gtk_button_box_get_spacing
      
      	* gtk/gtkbbox.h: deprecate some useless functions, remove entirely
      	the "set global default" functions
      	(struct _GtkButtonBox): remove "spacing" field, use the one from
      	GtkBox base class
      
      	* gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
      
      	* gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
      	render the icon, return the missing image icon.
      
      	* gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
      	image icon if the load fails.
      
      	* gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
      	when no image is found; should be the Netscape "missing image"
      	icon eventually but for now is a random image
      
      	* gtk/gtkwindow.c (gtk_window_set_role): new function, sets the
      	role for the session manager
      
      	* gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
      
      	* gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
      	GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
      
      	* gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
      9d1e2a13
  28. 06 Mar, 2001 1 commit
    • Owen Taylor's avatar
      Add animation of activation by, on activate, pressing the button, and · 71aa1161
      Owen Taylor authored
      Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkbutton.c: Add animation of activation by, on
      	activate, pressing the button, and adding a timeout that
      	releases the button after 250ms	or on key release and
      	emits ::clicked. (#51501)
      
      	* gtk/gtkdialog.c: Bit of a hack - for buttons in the
      	action area, we connect to ::clicked instead of ::activate
      	so the dialog stays up through the animation.
      
      Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
      	check the ignore_enter flag for the menu shell that
      	the item is actually a child of, not for attached
      	submenus. (#51536)
      71aa1161
  29. 05 Mar, 2001 1 commit
    • Alexander Larsson's avatar
      Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow. New · 83c3e076
      Alexander Larsson authored
      2001-03-05  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/gdkwindow.h:
      	Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
      	New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
      	gdk_window_set_icon_list for net wmspec functionality.
      
      	* gdk/x11/gdkwindow-x11.c:
      	Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
      	Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
      	gdk_window_set_icon_list.
      	Added gdk_wmspec_change_state helper function and used it in the code.
      	Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
      
      	* gtk/gtkdialog.c (gtk_dialog_init):
      	Set GDK_WINDOW_TYPE_HINT_DIALOG.
      
      	* gtk/gtkhandlebox.c (gtk_handle_box_realize):
      	Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
      
      	* gtk/gtkwindow.c:
      	new function gtk_window_set_type_hint.
      	On realize, set type hint and modal hint.
      
      	* gtk/gtkwindow.h:
      	Added type_hint field and gtk_window_set_type_hint.
      83c3e076
  30. 03 Mar, 2001 1 commit
    • Owen Taylor's avatar
      Remove spurious const. · bcb6720d
      Owen Taylor authored
      Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
      	const.
      
      	* gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
      
      	* gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
      	is no focus widget for the dialog currently, grab the focus as well
      	as the default.
      
      	* gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
      	the action area's children to iterate through, not the
      	dialog's children.
      bcb6720d
  31. 09 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      handle case where there are no rows in the model · 637c61da
      Havoc Pennington authored
      2001-01-09  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
      	there are no rows in the model
      
      	* gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
      	NULL, then return the start of the list
      
      	* gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
      	if we can't get any rows from an empty model
      
      	* gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
      	extraneous * after function pointer typedef usage
      
      	* Makefile.am: don't specify full path to cp and rm
      
      	* gtk/gtkcellrenderertextpixbuf.c
      	(gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
      	NULL before dereferencing, fixes a segfault that happened from
      	time to time
      
      	* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
      	use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
      	and reindent the function
      	(gtk_cell_renderer_pixbuf_get_size): indentation
      
      	* gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
      	we quit it
      	(gtk_dialog_add_buttons_valist): add g_return_if_fail
      	(gtk_dialog_set_default_response): New function, to set default
      	button
      	(gtk_dialog_set_response_sensitive): New function, to set
      	sensitivity of buttons
      
      	* gtk/gtkcellrendererpixbuf.c
      	(gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
      	(gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
      
      	* gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
      	handle any G_TYPE_OBJECT subclass, not just the base class, and
      	also boxed types.
      	(_gtk_tree_data_list_value_to_node): ditto
      
      	* gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if
      	--gtk-debug=tree
      
      	* gtk/gtkmain.c: add GTK_DEBUG_TREE
      
      	* gtk/gtkdebug.h: add GTK_DEBUG_TREE
      637c61da
  32. 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
  33. 14 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      fix bug where GC didn't always get updated properly · 73a00eeb
      Havoc Pennington authored
      2000-11-13  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug
      	where GC didn't always get updated properly
      
      	* demos/gtk-demo/textview.c (create_tags): Use subattributes
      	of fonts instead of setting the entire font
      
      	* gtk/testtext.c (fill_example_buffer): Use "size" instead of
      	setting entire font
      
      	* gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
      
      	* gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into
      	a bunch of individually-settable font attributes. You can still
      	use the "font" and "font_desc" args, they just set all the font
      	attributes at once.
      73a00eeb
  34. 06 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      Derive from GtkDialog, and use stock buttons. Should be 100% source · 69f42512
      Havoc Pennington authored
      2000-11-02  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
      	use stock buttons. Should be 100% source compatible, appropriate
      	filesel fields now point to dialog->vbox and dialog->action_area.
      	On the bizarre side, dialog->action_area and filesel->action_area
      	are not the same widget.
      	(gtk_file_selection_init): Put some padding around the selection
      	entry, so it isn't touching the GtkDialog separator.
      
      	* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
      	use stock buttons, etc. Should also be source compatible.
      	Set the dialog default title in _init not _new().
      
      	* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
      	Use stock buttons; don't put a button box inside the existing
      	dialog button box. Don't bother with push/pop colormap anymore.
      
      	* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
      	specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
      	for message dialog, and necessary for the font selection and color
      	selection with help and apply buttons.
      
      	* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
      	to the created button widget. Set GTK_CAN_DEFAULT on the button.
      	(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
      	between buttons, put less padding around the action area.
      	(gtk_dialog_run): Exit on unmap rather than on destroy.
      	This will also exit the loop if the widget is hidden.
      	(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
      	instead of GTK_RESPONSE_NONE; since we're already adding a bunch
      	of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
      	special-case delete event.
      
      	* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
      	formatting
      69f42512
  35. 20 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      create some stock buttons with the default accel group (create_image): · 1c9f0c0b
      Havoc Pennington authored
      2000-10-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/testgtk.c (create_buttons): create some stock buttons
      	with the default accel group
      	(create_image): test some new GtkImage features
      	(make_message_dialog): test GtkMessageDialog
      	(create_modal_window): fix someone's bizzarro indentation
      
              * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement
      	GTK_WIN_POS_CENTER_ON_PARENT.
      	Add "destroy with parent" setting, which means the window goes
      	away with its transient parent.
      	(gtk_window_get_default_accel_group): get the default accel group
      	for the window.
      	(gtk_window_set_destroy_with_parent): set/unset destroy with
      	parent flag
      	(gtk_window_read_rcfiles): invalidate icon set caches
      	after reloading rcfiles
      
      	* gtk/gtkenums.h (GtkWindowPosition): add
      	GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog
      	on its parent window when the dialog is mapped for the first time.
      
              * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add
      	a simple message dialog class
      
      	* gtk/gtkdialog.c (gtk_dialog_init): Connect delete event
      	handler to emit response signal, and maybe later it would
      	honor a hide_on_delete flag - though that isn't there yet.
      	Set border width on the vbox to 2, so we get some padding.
      	Use a button box for the action area.
      	(gtk_dialog_key_press): synthesize a delete event if Esc
      	is pressed and the GtkWidget key press handler didn't
      	handle the escape key.
      	(gtk_dialog_new_with_buttons): new function creates a dialog
      	with some default buttons in it.
      	(gtk_dialog_add_action_widget): add an activatable widget
      	as a button in the dialog - you can also add a non-activatable
      	widget by accessing the action area directly.
      	(gtk_dialog_add_button): add a simple button - stock ID or
      	label - to the action area
      	(gtk_dialog_response): emit response signal
      	(gtk_dialog_run): block waiting for the dialog, return
      	the response. Override normal delete_event behavior, so that
      	delete_event does nothing inside gtk_dialog_run().
      
      	* gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
      	emitted when an action widget is clicked or the dialog gets
      	delete_event
      
      	* gtk/gtk.h: add gtkmessagedialog.h
      
      	* gtk/Makefile.am: add gtkmessagedialog.[hc]
      
      2000-10-20  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtk-sections.txt: Add dialog docs
      1c9f0c0b
  36. 26 Jul, 2000 1 commit
  37. 24 Feb, 1999 1 commit