1. 30 Dec, 2005 1 commit
  2. 27 Nov, 2005 1 commit
  3. 01 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Intern some more strings. · 94eec042
      Matthias Clasen authored
      2005-09-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gdk/*.c: Intern some more strings.
              * gtk/gtkintl.h:
              * gtk/*.c: Define an I_() macro and use it instead of the
              bulky g_intern_static_string().
      94eec042
  4. 31 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Intern type names in code generated by glib-mkenums, too. · c09cc893
      Matthias Clasen authored
      2005-08-31  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/Makefile.am:
      	* gtk/Makefile.am: Intern type names in code generated by
      	glib-mkenums, too.
      
      	* gtk/*.c:
      	* gdk/x11/*.c:
      	* gdk/*.c: Intern type names before registering the type to avoid
      	unnecessary copies.
      c09cc893
  5. 15 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      When using gtk_dialog_run() for modal dialogs, make sure to inherit the · cbd1435c
      Matthias Clasen authored
      2005-08-15  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkfilechooserdefault.c: When using gtk_dialog_run() for
      	modal dialogs, make sure to inherit the window group from
      	the parent, since we don't inherit window groups across
      	transient parents currently.  (#312918, Christian Persch)
      
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_new):
      	* gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs.
      cbd1435c
  6. 22 Jul, 2005 2 commits
  7. 26 Mar, 2005 1 commit
  8. 22 Mar, 2005 1 commit
  9. 20 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      2005-03-20  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gdkalias.h:
      
      	* gtk/grk.symbols: Group symbols by header and source file.
      	* gtk/makegtkalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegtkalias.pl -def
      	* gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
      	this file.
      	* gtk/*.c: Include gtkalias.h after the other headers,
      	include gtkaliasdef.c at the bottom.
      	* gtk/*.h: Small cleanups.
      cca8dd63
  10. 09 Mar, 2005 1 commit
  11. 20 Dec, 2004 1 commit
  12. 02 Dec, 2004 1 commit
  13. 28 Oct, 2004 1 commit
  14. 26 Oct, 2004 2 commits
    • Matthias Clasen's avatar
      Add missing includes. (#156503, Kazuki IWAMOTO) · d8163210
      Matthias Clasen authored
      2004-10-26  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkmessagedialog.c:
      	* gtk/gtkfilechooserbutton.c: Add missing includes.  (#156503, Kazuki IWAMOTO)
      d8163210
    • Carlos Garnacho's avatar
      Fix for #118764, David Bordoley: · d5ab4594
      Carlos Garnacho authored
      2004-10-25  Carlos Garnacho Parro  <carlosg@gnome.org>
      
      	Fix for #118764, David Bordoley:
      
      	* gtk/gtkmessagedialog.[ch]
      	(gtk_message_dialog_format_secondary_text),
      	(gtk_message_dialog_format_secondary_format): API additions to
      	create HIG-like dialogs
      
      	* demos/gtk-demo/dialog.c: Use the new API in the example
      
      	* docs/reference/gtk/gtk-sections.txt:
      	* docs/reference/gtk/tmpl/gtkmessagedialog.sgml: documented API
      	additions
      d5ab4594
  15. 25 Oct, 2004 1 commit
    • Matthias Clasen's avatar
      Add a public setting for button ordering (#74669, Owen Taylor) · 8ab4fd45
      Matthias Clasen authored
      2004-10-25  Matthias Clasen  <mclasen@redhat.com>
      
      	Add a public setting for button ordering (#74669, Owen Taylor)
      
      	* gtk/gtksettings.c (gtk_settings_class_init): Add a
      	gtk-alternative-button-order setting.
      
      	* gtk/gtkdialog.h:
      	* gtk/gtkdialog.c (gtk_alternative_dialog_button_order): A
      	getter for the alternative button order setting.
      	* gtk/gtkdialog.c (gtk_dialog_set_alternative_button_order):
      	New function to install an alternative button order for a
      	dialog.
      
      	* gtk/gtkfilesel.c (gtk_file_selection_init):
      	* gtk/gtkfontsel.c (gtk_font_selection_dialog_init):
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons):
      	* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
      	* gtk/gtkfilechooserdefault.c (location_popup_handler):
      	Set up an alternative button order.
      8ab4fd45
  16. 09 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · 3612aee5
      Matthias Clasen authored
      Mon Aug  9 12:48:04 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Add hidden aliases for exported symbols which are
      	used internally in order to get rid of many PLT
      	entries.  (#145519, Arjan van de Ven)
      
      	* gtk/Makefile.am: Add rules to generate gtk.def and
      	from gtk.symbols, and make make check check the abi
      	with abicheck.sh.
      	(gtk_private_h_sources): Add gtkinternals.h
      	(gtk_built_private_headers): Add gtkalias.h
      	(gtk_extra_sources): Add gtk.symbols
      	(EXTRA_DIST): Add makegtkalias.pl and abicheck.sh
      
      	* gtk/gtk.symbols: New file. Definition of the GTK+ ABI.
      	The file can be processed by cpp to filter out certain
      	subsets of symbols.
      
      	* gtk/abicheck.sh: New file. Script to check the actually
      	symbols exported from libgtk-x11.2.0.so against the symbols
      	found in gtk.symbols.
      
      	* gtk/makegtkalias.pl: New file. Perl script to generate the
      	header containing the alias definitions for internally used
      	exported symbols from a list of symbols.
      
      	* gtk/gtkinternals.h: New file. An uninstalled header listing
      	symbols which must be exported for some reason and do not appear
      	in any other header.
      
      	* gtk/*.c: Include gtkalias.h
      3612aee5
  17. 11 Mar, 2004 1 commit
    • Owen Taylor's avatar
      Back out the put-labels-into-the-standard-focus-chain patches from bug · b5ddc23b
      Owen Taylor authored
      Thu Mar 11 13:58:24 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmessagedialog.c gtk/gtklabel.c: Back out the
              put-labels-into-the-standard-focus-chain patches
              from bug #59707.
      
              * gtk/gtklabel.c (gtk_label_focus): Only put the
              label in the tab chain when the control key is pressed.
      b5ddc23b
  18. 06 Mar, 2004 1 commit
  19. 11 Feb, 2004 1 commit
  20. 03 Feb, 2004 3 commits
    • Federico Mena Quintero's avatar
      Make the window not resizable. Fixes #114032. · 972b761c
      Federico Mena Quintero authored
      2004-02-03  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_init): Make the
      	window not resizable.  Fixes #114032.
      972b761c
    • Federico Mena Quintero's avatar
      Add documentation for the use_separator style property. · 2a18cfe2
      Federico Mena Quintero authored
      2004-02-03  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add
      	documentation for the use_separator style property.
      2a18cfe2
    • 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
  21. 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
  22. 29 Oct, 2003 1 commit
    • Owen Taylor's avatar
      Allow NULL for message_format, as described in the docs and as worked · 935b37eb
      Owen Taylor authored
      Wed Oct 29 15:40:26 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmessagedialog.c (gtk_message_dialog_new/
              gtk_message_dialog_new_with_format): Allow NULL
              for message_format, as described in the docs and
              as worked previously. (#125759, Richard Hult)
      
              * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
              Use g_markup_vprintf_escaped() to escape argumetns.
      
              * gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
              so there is some way to set literal markup.
      935b37eb
  23. 05 Aug, 2003 1 commit
  24. 18 Jul, 2003 1 commit
    • Matthias Clasen's avatar
      Add a new keybinding signal, move_viewport. (gtk_text_view_move_viewport): · eaae0a6b
      Matthias Clasen authored
      2003-07-18  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding signal, move_viewport.
      	(gtk_text_view_move_viewport): New function which implements the move_viewport functionality.
      	(gtk_text_view_move_cursor_internal): If the cursor is not visible, move the viewport. (#78669)
      
      	* gtk/gtkenums.h (GtkScrollStep): New enumeration, used for move_viewport argument.
      
      	* gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip property.  (#111779)
      
      	* gtk/gtkwindow.h:
      	* gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
      
      	* gtk/gtkmessagedialog.h:
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.
      	(#65501, Sebastian Rittau)
      eaae0a6b
  25. 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
  26. 28 Jan, 2002 1 commit
  27. 24 Nov, 2001 1 commit
  28. 15 Nov, 2001 1 commit
  29. 13 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Warn · aebe24f2
      Owen Taylor authored
      Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
      aebe24f2
  30. 02 Nov, 2001 1 commit
  31. 01 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      implement overwrite mode · fe3e516a
      Havoc Pennington authored
      2001-06-01  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
      
      	* gtk/gtktextview.c (gtk_text_view_commit_handler): don't
      	overwrite in overwrite mode if we already deleted the selection
      	and replaced it with new text.
      
      	* gtk/gtklabel.c (gtk_label_select_region_index): if you set the
      	selection to an empty range, clear the clipboard if we owned it.
      	(gtk_label_set_selectable): give up selection if we become
      	unselectable.
      	(gtk_label_state_changed): override state changed to unselect text
      	when insensitive
      	(get_text_callback): add paranoia check that indexes aren't
      	outside of label->text
      	(gtk_label_select_region): make -1 for start_offset mean "end of
      	label," for consistency with GtkEditable
      
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
      	GTK_DIALOG_NO_SEPARATOR flag
      fe3e516a
  32. 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
  33. 28 Apr, 2001 1 commit
    • Havoc Pennington's avatar
      fix warning · 7e9b154f
      Havoc Pennington authored
      2001-04-27  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
      
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
      
      	* gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
      	line/para separators
      	(gtk_entry_create_layout): set single paragraph mode on the layout
      
      	* gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
      	spacing between the image and label; instead, inside a button box
      	the button will get extra space that will go there, but if people
      	configure button box for 0 chubbiness, then there's no spacing.
      
      	* gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
      	and min/max size style properties, so people can tune their
      	chubbiness.
      
      	* tests/testgtk.c (make_toolbar): remove calls to removed toolbar
      	functions
      
      	* gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
      	space_style, and button_relief into style properties, remove
      	functions for setting them
      
      	* gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop
      	it back down
      
      	* gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
      	types from gtk_widget_style_get
      
      	* gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
      	with a style property.
      
      	* gdk/x11/gdkevents-x11.c: namespace the settings
      
      	* gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
      
      	* gtk/gtksettings.c (gtk_settings_class_init): remove code with
      	side effects from inside g_assert(), so that G_DISABLE_ASSERT can
      	be used. Also, translate doc strings for settings. Also, namespace
      	the double-click-time property. Also, remove bell properties crap.
      7e9b154f
  34. 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
  35. 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
  36. 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