summaryrefslogtreecommitdiff
path: root/gtk/gtkoptionmenu.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove GtkOptionMenu completelyChristian Dywan2010-05-031-1036/+0
|
* Don't use GTK_WIDGET_STATE in internal code anymoreJavier Jardón2010-03-091-3/+3
| | | | | | Use gtk_widget_get/set_state() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_REALIZEDJavier Jardón2010-03-031-1/+1
| | | | | | Use gtk_widget_get_realized() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_DEFAULT)Javier Jardón2010-03-021-3/+5
| | | | Use new API instead: gtk_widget_set_can_default ()
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_FOCUS)Javier Jardón2010-03-021-1/+1
| | | | Use new API instead: gtk_widget_set_can_focus ()
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_RECEIVES_DEFAULT)Javier Jardón2010-03-011-1/+2
| | | | Use new API instead: gtk_widget_set_receives_default ()
* Deprecate widget flag: GTK_WIDGET_VISIBLEJavier Jardón2010-03-011-5/+6
| | | | | | Use gtk_widget_get_visible() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_HAS_FOCUSJavier Jardón2010-03-011-2/+2
| | | | | | Use gtk_widget_has_focus() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_SENSITIVEJavier Jardón2010-03-011-2/+2
| | | | | | Use gtk_widget_get_sensitive() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_IS_SENSITIVEJavier Jardón2010-03-011-4/+4
| | | | | | Use gtk_widget_is_sensitive() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate flag macros for toplevel, state, no window and composite childChristian Dywan2010-01-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Deprecate widget flag macros GTK_WIDGET_STATE, GTK_WIDGET_SAVED_STATE, GTK_WIDGET_FLAGS, GTK_WIDGET_TOPLEVEL, GTK_WIDGET_NO_WINDOW and GTK_WIDGET_COMPOSITE_CHILD. Also deprecate the type macros GTK_WIDGET_TYPE, GTK_OBJECT_TYPE_NAME and GTK_OBJECT_TYPE which have become redundant. Instances of GTK_WIDGET_TOPLEVEL are replaced with gtk_widget_is_toplevel, GTK_WIDGET_TYPE is replaced with G_OBJECT_TYPE, GTK_WIDGET_COMPOSITE_CHILD is replaced with use of the "composite-child" property and uses of GTK_WIDGET_NO_WINDOW are adjusted to use gtk_widget_get_has_window. Uses of GTK_WIDGET_SAVED_STATE and GTK_WIDGET_FLAGS inside GtkWidget are changed to direct flag usage. Documentation is updated to refer to gtk_widget_set_has_window and gtk_widget_get_has_window. Gail and tests are updated as well. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=69872
* gtk/gtkdnd-quartz.c gtk/gtkdnd.c gtk/gtkentry.c gtk/gtkfilesel.cSven Neumann2008-08-111-2/+2
| | | | | | | | | | | | | | | | | | | | 2008-08-11 Sven Neumann <sven@gimp.org> * gtk/gtkdnd-quartz.c * gtk/gtkdnd.c * gtk/gtkentry.c * gtk/gtkfilesel.c * gtk/gtkimcontextsimple.c * gtk/gtkimmulticontext.c * gtk/gtkoptionmenu.c * gtk/gtkplug.c * gtk/gtkrecentchooserdefault.c * gtk/gtkscrolledwindow.c * gtk/gtksocket-x11.c: use canonical signal names in some more places that I missed earlier. svn path=/trunk/; revision=21069
* gtk/gtkclist.c gtk/gtkcontainer.c gtk/gtkfilechooserbutton.cMichael Natterer2008-08-071-2/+1
| | | | | | | | | | | | | | | | | | | | | 2008-08-07 Michael Natterer <mitch@imendio.com> * gtk/gtkclist.c * gtk/gtkcontainer.c * gtk/gtkfilechooserbutton.c * gtk/gtkgamma.c * gtk/gtkmenutoolbutton.c * gtk/gtkoptionmenu.c * gtk/gtkradiobutton.c * gtk/gtkradiomenuitem.c * gtk/gtktipsquery.c * gtk/gtktree.c * gtk/gtktreeview.c: chain up unconditionally in destroy(). * gtk/gtkhandlebox.c: remove empty destroy() implementation. svn path=/trunk/; revision=21035
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* gtk/gtkfilesel.c gtk/gtkinputdialog.c gtk/gtkmenutoolbutton.cMichael Natterer2008-06-171-5/+6
| | | | | | | | | | | | | | | | | 2008-06-17 Michael Natterer <mitch@imendio.com> * gtk/gtkfilesel.c * gtk/gtkinputdialog.c * gtk/gtkmenutoolbutton.c * gtk/gtkoptionmenu.c * gtk/gtktoolitem.c * gtk/gtktooltips.c: add or move around #undef GTK_DISABLE_DEPRECATED so it's possible to build without deprecated stuff again (with the minor glitch that it doesn't link ;) but at least it's a tool to keep the code clean). svn path=/trunk/; revision=20426
* cast menu's toplevel to GtkWindow when passing toMichael Natterer2008-06-171-1/+1
| | | | | | | | | | 2008-06-17 Michael Natterer <mitch@imendio.com> * gtk/gtkoptionmenu.c (gtk_option_menu_position): cast menu's toplevel to GtkWindow when passing to gtk_window_set_type_hint(). svn path=/trunk/; revision=20417
* Bug 536765 – GtkComboBox should set COMBO type hint for its menuMatthias Clasen2008-06-111-0/+4
| | | | | | | | | * gtk/gtkoptionmenu.c: * gtk/gtkcombobox.c: Set the window type hint on popups. Patch by Danny Baumann svn path=/trunk/; revision=20351
* gtk/gtkcellrenderer.c gtk/gtkcellrendererpixbuf.cMichael Natterer2008-05-191-2/+1
| | | | | | | | | | | | | | | | 2008-05-19 Michael Natterer <mitch@imendio.com> * gtk/gtkcellrenderer.c * gtk/gtkcellrendererpixbuf.c * gtk/gtkcellrenderertoggle.c * gtk/gtkimagemenuitem.c * gtk/gtkmenutoolbutton.c * gtk/gtkoptionmenu.c * gtk/gtkstatusbar.c * gtk/gtktextview.c: s/PROP_ZERO/PROP_0/g, remove LAST_PROP. svn path=/trunk/; revision=20112
* gtk/gtkcellview.c gtk/gtklabel.c gtk/gtklayout.c gtk/gtklist.cMichael Natterer2008-02-071-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | 2008-02-07 Michael Natterer <mitch@imendio.com> * gtk/gtkcellview.c * gtk/gtklabel.c * gtk/gtklayout.c * gtk/gtklist.c * gtk/gtkmenu.c * gtk/gtkmenushell.c * gtk/gtkmisc.c * gtk/gtkoptionmenu.c * gtk/gtkplug.c * gtk/gtkpreview.c * gtk/gtkprogress.c * gtk/gtkradiomenuitem.c * gtk/gtkscale.c * gtk/gtkscrolledwindow.c * gtk/gtksocket.c: remove g_return_if_fail() from private functions and virtual function implementations. svn path=/trunk/; revision=19492
* gtk/gtkstyle.c (option_menu_get_props) use gtk_requisition_free() insteadManish Singh2007-09-211-1/+1
| | | | | | | | | | | 2007-09-21 Manish Singh <yosh@gimp.org> * gtk/gtkstyle.c (option_menu_get_props) * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): use gtk_requisition_free() instead of g_free() for freeing requisitions. svn path=/trunk/; revision=18855
* gtk/gtkstyle.c (option_menu_get_props) Use gtk_border_free when freeingMichael Natterer2007-01-031-1/+1
| | | | | | | | | | | 2007-01-03 Michael Natterer <mitch@imendio.com> * gtk/gtkstyle.c (option_menu_get_props) * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Use gtk_border_free when freeing borders. svn path=/trunk/; revision=17032
* Commit a patch by Behdad to fix typos, omissions and other errors in theMatthias Clasen2006-09-101-1/+0
| | | | | | | | 2006-09-10 Matthias Clasen <mclasen@redhat.com> * Commit a patch by Behdad to fix typos, omissions and other errors in the symbol aliasing, and add checks for local PLT entries. (#354687, Behdad Esfahbod)
* Improve consistency of signal and property namesMatthias Clasen2006-07-061-6/+6
|
* More of the sameMatthias Clasen2006-05-141-2/+2
|
* Boilerplate reductionMatthias Clasen2006-05-021-35/+3
|
* Documentation updatesMatthias Clasen2005-12-201-1/+1
|
* Various cleanups. (#315360, Kjartan Maraas)Matthias Clasen2005-09-131-2/+0
| | | | | | 2005-09-13 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: Various cleanups. (#315360, Kjartan Maraas)
* Intern some more strings.Matthias Clasen2005-09-011-2/+2
| | | | | | | | | 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.
* Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITEMatthias Clasen2005-03-221-3/+4
| | | | | | | | | | | | 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/+5
| | | | | | | | | | | | | | | | | | 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-2/+2
|
* 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
* Fix #136614 in a better way:Matthias Clasen2004-03-101-6/+0
| | | | | | | | | | | | | Wed Mar 10 01:49:27 2004 Matthias Clasen <maclas@gmx.de> Fix #136614 in a better way: * gtk/gtkoptionmenu.c (gtk_option_menu_init): Undo the last change. * gtk/gtkbutton.c (struct _GtkButtonPrivate): Add a flag, align_set. * gtk/gtkbutton.c (gtk_button_init): Initialize align_set to 0. * gtk/gtkbutton.c (maybe_set_alignment): Rework to only set the alignment if priv->align_set is set. * gtk/gtkbutton.c (gtk_button_set_alignment): Set align_set to 1.
* Avoid centering the label that is reparented from the menuitem. (#136614,Matthias Clasen2004-03-091-1/+7
| | | | | | | | Tue Mar 9 23:09:46 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering the label that is reparented from the menuitem. (#136614, Dennis Cranston)
* 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>
* Add deprecation notes pointing people to GtkComboBox.Matthias Clasen2004-02-151-0/+1
|
* 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_().
* New function to emit the "cancel" signal on a menu shell.Matthias Clasen2003-12-211-1/+1
| | | | | | | | | | | | | | Sun Dec 21 01:54:40 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkmenushell.h: * gtk/gtkmenushell.c (gtk_menu_shell_cancel): New function to emit the "cancel" signal on a menu shell. * gtk/gtkmenu.c (gtk_menu_key_press): * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu): * gtk/gtkmenubar.c (_gtk_menu_bar_cycle_focus): Use the new function instead of directly emitting the signal. (#81803, Owen Taylor)
* Deprecate. Ditto.Kristian Rietveld2003-10-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Fri Oct 10 19:10:12 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtkcombo.h: Deprecate. * gtk/gtkoptionmenu.h: Ditto. * gtk/gtkcombobox.c (gtk_combo_box_size_request), (gtk_combo_box_size_allocate): Rework, things behave better now. Still needs some work on requesting enough size when taking the items in the list into account. * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable deprecated" guards. * gtk/gtkinputdialog.c: ditto. * gtk/gtkitemfactory.c: ditto. * gtk/gtkoptionmenu.c: ditto. * demos/gtk-demo/menus.c: remove the option menu. * demos/gtk-demo/sizegroup.c: replace the option menus with GtkComboBox. * demos/gtk-demo/textview.c: ditto. (A general GtkComboBox demo will be added later on).
* Set state of labels back to normal before reparenting back. (#102387)Matthias Clasen2003-03-291-0/+1
| | | | | | | 2003-03-29 Matthias Clasen <maclas@gmx.de> * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state of labels back to normal before reparenting back. (#102387)
* account for RTL code.Jonathan Blandford2003-02-261-0/+4
| | | | | | | Tue Feb 25 21:55:17 2003 Jonathan Blandford <jrb@redhat.com> * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL code.
* Data constness fixes. (#75754)Matthias Clasen2002-12-101-1/+1
|
* Fix drawing of RTL optionmenus by flipping the indicator_spacing.Matthias Clasen2002-11-081-1/+1
| | | | | * gtk/gtkoptionmenu.c (gtk_option_menu_paint): Fix drawing of RTL optionmenus by flipping the indicator_spacing.
* Automatic RTL flipping for some more widgets.Matthias Clasen2002-11-021-4/+18
|
* Deprecation cleanupManish Singh2002-10-091-39/+45
| | | | | | | | Wed Oct 9 16:52:53 2002 Manish Singh <yosh@gimp.org> * gtk/gtkclipboard.[ch] gtk/gtkeditable.[ch] gtk/gtkgc.c gtk/gtkoptionmenu.[ch] gtk/gtkselection.c gtk/gtksizegroup.[ch]: Deprecation cleanup
* activate the menu item so old apps work properlyjacob berkman2002-07-101-0/+1
| | | | | | | 2002-07-10 jacob berkman <jacob@ximian.com> * gtk/gtkoptionmenu.c (gtk_option_menu_scroll_event): activate the menu item so old apps work properly
* Remove the result file on error. (#79929, David Highley)Owen Taylor2002-05-141-1/+6
| | | | | | | | | | | | Tue May 14 18:41:58 2002 Owen Taylor <otaylor@redhat.com> * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove the result file on error. (#79929, David Highley) * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu): If the menu is currently active, cancel it before setting the new menu. (#79162, Jonathan Blandford.)