GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

  1. 12 Mar, 2004 1 commit
    • Federico Mena Quintero's avatar
      Don't ignore the return value of gtk_widget_activate(). · edf8e6f5
      Federico Mena Quintero authored
      2004-03-12  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkwindow.c (gtk_window_activate_focus): Don't ignore the
      	return value of gtk_widget_activate().
      	(gtk_window_activate_default): Likewise.  Fixes #137008.
      
      	* gtk/gtkfilechooserdialog.c (response_cb): Act on positive
      	response IDs we recognize, rather than bailing out on cancellation
      	ones.  Fixes #136237; patch by Olivier Andrieu
      	<oliv__a@users.sourceforge.net>.
      	(file_chooser_widget_file_activated): If the dialog doesn't have a
      	default widget, try to find a suitable response widget on our own.
      	People should *really* be using gtk_dialog_set_default_response(),
      	but this is to help lazy programmers.
      
      	* gtk/gtkdialog.c (_gtk_dialog_get_response_for_widget): New
      	internal function.
      	(get_response_data): Add a "create" argument so that we don't
      	unconditionally create the response data.
      edf8e6f5
  2. 06 Mar, 2004 1 commit
  3. 03 Feb, 2004 1 commit
    • Federico Mena Quintero's avatar
      Fix #68938. · d08dd112
      Federico Mena Quintero authored
      2004-02-03  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix #68938.
      
      	* gtk/gtkdialog.c (GtkDialogPrivate): New private structure for
      	GtkDialog; right now it only contains an ignore_separator field.
      	(gtk_dialog_class_init): Register the private structure.
      	(gtk_dialog_init): Initialize the priv->ignore_separator field.
      	(_gtk_dialog_set_ignore_separator): New private function.
      	(gtk_dialog_set_has_separator): Ignore the setting if appropriate.
      
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add a
      	use_separator style property.
      	(gtk_message_dialog_style_set): Change the dialog's separator
      	based on the style property.
      	(gtk_message_dialog_init): Set the dialog box to ignore the
      	separator setting.
      d08dd112
  4. 16 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog and · 07d4d314
      Matthias Clasen authored
      Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
      
      	The first part of the fix for #114351 (see also
      	gdk-pixbuf/ChangeLog and po/ChangeLog):
      
      	* gtk/gtkintl.h:
      	* gdk-pixbuf/gdk-pixbuf-i18n.h:
      	* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
      
      	* gdk/gdkdisplaymanager.c:
      	* gdk-pixbuf/gdk-pixbuf.c:
      	* modules/input/gtkimcontextxim.c:
      	* gtk/*.c:  Mark property blurbs and nicks with P_().
      
      	* po/Makefile.in.in: Add --keyword=P_ to the xgettext
      	invocation, since property blurbs and nicks are
      	now marked with P_().
      07d4d314
  5. 15 Dec, 2003 2 commits
  6. 16 Dec, 2002 1 commit
    • Owen Taylor's avatar
      Some fixes for modal hint setting based on a patch from Arvind Samptur · 6669d0c5
      Owen Taylor authored
      Sun Dec 15 18:47:30 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Some fixes for modal hint setting based on a patch
      	from Arvind Samptur (#100416)
      
      	* gtk/gtkdialog.c (gtk_dialog_run): Call gtk_window_set_modal
      	before showing the window for efficiency.
      
      	* gtk/gtkwindow.c (gtk_window_realize): Ignore the EWMH
      	constraint that the transient-for hint must always be
      	set on windows with the modal hint and just always set
      	the modal hint.
      
      	* gtk/gtkwindow.c (gtk_window_set_modal): Update the
      	modal hint on the GdkWindow when the window is realized.
      6669d0c5
  7. 14 Dec, 2002 2 commits
  8. 25 Nov, 2002 1 commit
  9. 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
  10. 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
  11. 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
  12. 10 Jul, 2002 1 commit
  13. 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
  14. 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
  15. 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
  16. 24 Dec, 2001 1 commit
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 02 Nov, 2001 2 commits
  23. 20 Sep, 2001 1 commit
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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