summaryrefslogtreecommitdiff
path: root/gtk/gtkmessagedialog.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix an a11y regressionMatthias Clasen2006-12-041-0/+15
|
* Apply a cleanup patch by Kjartan Maraas (#341812)Matthias Clasen2006-10-081-1/+1
| | | | | | 2006-10-08 Matthias Clasen <mclasen@redhat.com> * Apply a cleanup patch by Kjartan Maraas (#341812)
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Add an image propertyMatthias Clasen2006-05-091-44/+77
|
* Boilerplate reductionMatthias Clasen2006-05-021-34/+3
|
* Apply a patch from Dennis Cranston to make dialogs more consistentMatthias Clasen2006-03-101-19/+13
| | | | | | | | | | | | | | | | | | | | | 2006-03-10 Matthias Clasen <mclasen@redhat.com> Apply a patch from Dennis Cranston to make dialogs more consistent (#163850) * gtk/gtkcolorsel.c (make_label_spinbutton): Left-align labels. * gtk/gtkfontsel.c (gtk_font_selection_init): * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): * gtk/gtkcolorsel.c (gtk_color_selection_init): * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): * gtk/gtkinputdialog.c (gtk_input_dialog_init): Update the layout of the dialog to follow HIG recommendations. Also update labels. * gtk/gtkmessagedialog.c (gtk_message_dialog_init): HIG-compatible spacing. (gtk_message_dialog_font_size_change): Merged into gtk_message_dialog_style_set.
* Add properties. (#311254, Johan Dahlin) (gtk_message_dialog_new): RemoveMatthias Clasen2006-01-111-11/+138
| | | | | | | * gtk/gtkmessagedialog.c: Add properties. (#311254, Johan Dahlin) (gtk_message_dialog_new): Remove some redundant code, pointed out by Gustavo Carneiro.
* Alert dialogs should not have titles and should not be displayed in theMatthias Clasen2005-12-301-6/+4
| | | | | | | | | 2005-12-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmessagedialog.c (gtk_message_dialog_init): (setup_type): Alert dialogs should not have titles and should not be displayed in the taskbar. (#310443, Carlos Garnacho Parro, Dennis Cranston)
* Fix an example. (#322493, Elie De Brauwer)Matthias Clasen2005-11-271-1/+1
| | | | | | | 2005-11-27 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup): Fix an example. (#322493, Elie De Brauwer)
* Intern some more strings.Matthias Clasen2005-09-011-1/+1
| | | | | | | | | 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().
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | 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.
* When using gtk_dialog_run() for modal dialogs, make sure to inherit theMatthias Clasen2005-08-151-2/+2
| | | | | | | | | | | | 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.
* 2.7.4GTK_2_7_4Matthias Clasen2005-07-221-1/+2
|
* Point out escaping oversight. (#311260, Owen Taylor)Matthias Clasen2005-07-221-0/+12
| | | | | | | 2005-07-22 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmessagedialog.c (gtk_message_dialog_format_secondary_markup): Point out escaping oversight. (#311260, Owen Taylor)
* Use canonical names for g_object_notify() as well.Matthias Clasen2005-03-261-3/+3
| | | | | | | | 2005-03-26 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: * gdk/gdkdisplaymanager.c: Use canonical names for g_object_notify() as well.
* Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITEMatthias Clasen2005-03-221-5/+7
| | | | | | | | | | | | 2005-03-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like their G_ counterparts, but also mark the name, nick and blurb as static. * gtk/*.c: Mark param spec strings as static, using the new macros.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+4
| | | | | | | | | | | | | | | | | | 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.
* More canonical property names.Matthias Clasen2005-03-091-3/+3
|
* Don't show the secondary label on show_all(). (#161707, Christian Persch)Matthias Clasen2004-12-201-1/+2
| | | | | | | 2004-12-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show the secondary label on show_all(). (#161707, Christian Persch)
* Don't leak pango_font_description object (#160214, Frederic Crozat).Matthias Clasen2004-12-021-0/+1
| | | | | | | 2004-12-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmessagedialog.c: (setup_primary_label_font): Don't leak pango_font_description object (#160214, Frederic Crozat).
* Fix many sparse warnings.Matthias Clasen2004-10-281-1/+1
|
* Add missing includes. (#156503, Kazuki IWAMOTO)Matthias Clasen2004-10-261-0/+1
| | | | | | | 2004-10-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmessagedialog.c: * gtk/gtkfilechooserbutton.c: Add missing includes. (#156503, Kazuki IWAMOTO)
* Fix for #118764, David Bordoley:Carlos Garnacho Parro2004-10-261-14/+188
| | | | | | | | | | | | | | | | | 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
* Add a public setting for button ordering (#74669, Owen Taylor)Matthias Clasen2004-10-251-0/+8
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Back out the put-labels-into-the-standard-focus-chain patches from bugOwen Taylor2004-03-111-41/+0
| | | | | | | | | | | 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.
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* New ::map() handler. If no widget has the focus, try to give it to theFederico Mena Quintero2004-02-111-0/+41
| | | | | | | | | 2004-02-11 Federico Mena Quintero <federico@ximian.com> * gtk/gtkmessagedialog.c (gtk_message_dialog_map): New ::map() handler. If no widget has the focus, try to give it to the default widget. If there is no default widget, give it to the first button. Fixes the cause for which #59707 was reopened.
* Make the window not resizable. Fixes #114032.Federico Mena Quintero2004-02-031-0/+2
| | | | | | | 2004-02-03 Federico Mena Quintero <federico@ximian.com> * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Make the window not resizable. Fixes #114032.
* Add documentation for the use_separator style property.Federico Mena Quintero2004-02-031-0/+8
| | | | | | | 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.
* Fix #68938.Federico Mena Quintero2004-02-031-0/+16
| | | | | | | | | | | | | | | | | | | | 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.
* The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog andMatthias Clasen2004-01-161-6/+6
| | | | | | | | | | | | | | | | | | | | 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_().
* Allow NULL for message_format, as described in the docs and as workedOwen Taylor2003-10-291-25/+41
| | | | | | | | | | | | | | | 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.
* Add a missing break. (#119156, Callum McKenzie)Owen Taylor2003-08-051-0/+1
| | | | | | | Tue Aug 5 10:07:08 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property): Add a missing break. (#119156, Callum McKenzie)
* Add a new keybinding signal, move_viewport. (gtk_text_view_move_viewport):Matthias Clasen2003-07-181-2/+78
| | | | | | | | | | | | | | | | | | | 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)
* Deprecation cleanupManish Singh2002-10-111-15/+18
| | | | | | | | | | 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
* General property notification cleanup.Matthias Clasen2002-01-281-0/+2
|
* Align the image at the top, #65020, request from Seth Nickell)Owen Taylor2001-11-241-0/+1
| | | | | | Fri Nov 23 18:57:46 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align the image at the top, #65020, request from Seth Nickell)
* Patch from Murray Cumming to add "message_type" and "buttons" CONSTRUCTOwen Taylor2001-11-151-14/+132
| | | | | | | | | | Thu Nov 15 11:59:35 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add "message_type" and "buttons" CONSTRUCT properties. (#64069) * tests/testsocket.c: Expand tests to add a "local passive child" (Test case for #64428)
* WarnOwen Taylor2001-11-131-0/+6
| | | | | | Mon Nov 12 19:33:52 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
* Go to the GUP proposed ordering of buttons with [OK] in the lower rightOwen Taylor2001-11-021-6/+6
| | | | | | | | | | Fri Nov 2 14:55:53 2001 Owen Taylor <otaylor@redhat.com> * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c, gtkgamma.c,gtkmessagedialog.c}: Go to the GUP proposed ordering of buttons with [OK] in the lower right hand corner. Patch from Gregory Merchan, #56331.
* implement overwrite modeHavoc Pennington2001-06-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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
* get sizes an icon set can render without falling back to missing imageHavoc Pennington2001-05-251-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* fix warningHavoc Pennington2001-04-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* handle 0-height empty/invisible lines.Havoc Pennington2001-04-241-6/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Derive from GtkDialog, and use stock buttons. Should be 100% sourceHavoc Pennington2000-11-061-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* create some stock buttons with the default accel group (create_image):Havoc Pennington2000-10-201-0/+251
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