summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge the xi2-for-master branchMatthias Clasen2010-05-251-6/+7
|
* Use accessor functions to access GtkLabel variablesJavier Jardón2010-05-031-4/+4
|
* Remove internal GtkNotebook tab homogeneousnes and border helpersChristian Dywan2010-05-031-78/+0
|
* Remove deprecated GtkNotebook functionsChristian Dywan2010-05-031-192/+0
|
* Prevent the destruction of the menu label on page removalSjoerd Simons2010-03-221-4/+7
| | | | | | | In certain cases the menu label of a notebook page will be reused after the page was removed from the notebook, for instance when a page is dragged from one notebook to another. For such cases make sure that the menu label isn't destroyed as part of destroying the menu item it was in.
* Improve docs of gtk_notebook_set_tab_label_packingChristian Dywan2010-03-121-4/+6
| | | | | | | Use the term tab label rather than bookmark and point out that packing type is deprecated. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=612575
* Don't use GTK_WIDGET_STATE in internal code anymoreJavier Jardón2010-03-091-2/+2
| | | | | | Use gtk_widget_get/set_state() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_MAPPED)Javier Jardón2010-03-061-2/+2
| | | | | | Use new API instead: gtk_widget_set_mapped () https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_REALIZED)Javier Jardón2010-03-061-1/+2
| | | | | | Use new API instead: gtk_widget_set_realized () https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_WINDOW)Javier Jardón2010-03-061-1/+1
| | | | | | Use new API instead: gtk_widget_set_has_window () 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
* Deprecate widget flag: GTK_WIDGET_MAPPEDJavier Jardón2010-03-031-13/+14
| | | | | | Use gtk_widget_get_mapped() instead. https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_FOCUS)Javier Jardón2010-03-021-3/+3
| | | | Use new API instead: gtk_widget_set_can_focus ()
* Deprecate widget flag: GTK_WIDGET_VISIBLEJavier Jardón2010-03-011-50/+54
| | | | | | 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_IS_SENSITIVEJavier Jardón2010-03-011-1/+1
| | | | | | Use gtk_widget_is_sensitive() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_DRAWABLEJavier Jardón2010-03-011-8/+8
| | | | | | Use gtk_widget_is_drawable() instead. https://bugzilla.gnome.org/show_bug.cgi?id=69872
* [annotations] Add allow-noneJohan Dahlin2010-02-191-3/+3
| | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* Fix a redraw problem with action widgetsMatthias Clasen2010-01-181-1/+1
| | | | Fixes bug 603245.
* Fix some issues with action widgetsMatthias Clasen2010-01-181-18/+27
| | | | | | We need to hide/show them depending on show_tabs, and we should not grow the notebooks requisition unless we have to. Reported in bug 601412.
* [docs] Use the correct GTK-doc syntax to refer to GTK+ propertiesJavier Jardón2010-01-121-4/+4
|
* Deprecate flag macros for toplevel, state, no window and composite childChristian Dywan2010-01-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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
* [introspection] Merge in Gtk-custom.c annotationsColin Walters2009-12-161-20/+20
| | | | | | | | The Gtk-custom.c file in gir-repository contained a number of introspection annotations. Merge those into the GTK source files. Some documentation was moved from the tmpl/ files to accomodate the addition of annotations.
* Mention exact property names in notebook tab packing deprecationChristian Dywan2009-11-301-2/+4
| | | | Follow-up for bug 596083.
* Make the action widgets internal children of GtkNotebookChristian Persch2009-11-281-5/+10
| | | | | | | | So they're not included in the result of gtk_container_foreach() which preserves it as a convenient way to get the list of all notebook content widgets. Bug #601409.
* Clarify documentation of gtk_notebook_set_action_widgetChristian Dywan2009-11-091-2/+3
|
* Add GtkBuilder support for notebook action area.Matthias Clasen2009-11-081-0/+8
| | | | | Allow to place children into the notebooks action areas by using "action-start" or "action-end" as the type.
* Add an 'action area' to GtkNotebookMatthias Clasen2009-11-081-45/+391
| | | | | | Add support for putting widgets in the tab area, before or after the tabs. This was requested a long time ago in bug 116650. The implementation is the work of Johannes Schmid.
* Another property formatting fixMatthias Clasen2009-11-011-1/+1
|
* Work around a gtk-doc formatting problemMatthias Clasen2009-11-011-2/+2
|
* Deprecated GtkNotebook tab packingChristian Dywan2009-10-211-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=596083
* Bug 590959 - Set child_has_focus flag properly (second try)Benjamin Otte2009-08-121-3/+8
| | | | | | | | | | | | | | Previously, this flag wasn't cleared properly when the notebook lost focus, but only when the notebook was focussed again later. As this flag is only used to advance correctly focus pages by grabbing focus to the new page after switching the page, this is not good. In particular, it can cause a focus grab when programmatically switching the notebook page and the focus is inside a completely different widget. A previous attempt at this fix in 6e0af6c25225440263792a3cbecd8f4301e3def5 has been reverted in dfe0c8c0ca4823c77fa71b0048f6454958170b4e because it didn't work correctly.
* Revert "Bug 590959 - Set child_has_focus flag properly"Xan Lopez2009-08-071-2/+2
| | | | | | | This reverts commit 6e0af6c25225440263792a3cbecd8f4301e3def5. The patch seems to break focus handling in some applications, like Epiphany.
* Bug 590959 - Set child_has_focus flag properlyBenjamin Otte2009-08-061-2/+2
| | | | | | | | | Previously, this flag wasn't cleared properly when the notebook lost focus, but only when the notebook was focussed again later. As this flag is only used to advance correctly focus pages by grabbing focus to the new page after switching the page, this is not good. In particular, it can cause a focus grab when programmatically switching the notebook page and the focus is inside a completely different widget.
* bgo#529908 - Sanitize handling of motion events in GtkNotebookStanislav Brabec2009-06-231-8/+11
| | | | | | | | | | GtkNotebook used gdk_window_get_pointer() incorrectly, as it already had coordinates from various GdkEvents. Using get_pointer() means that you get pointer positions *after* the event has happened, which leads to visual out-of-sync results, or inadvertently detached tabs if you click on them while your machine is being slow. Signed-off-by: Federico Mena Quintero <federico@novell.com>
* Improve GtkNotbook behaviour with too little spaceMatthias Clasen2009-05-171-16/+19
| | | | This fixes bug 582488. The patch was provided by Morten Welinder.
* Keep popups on the right screen. Pointed out by Morten WelinderMatthias Clasen2009-02-281-0/+2
| | | | | | | | | * gtk/gtkentrycompletion.c: * gtk/gtknotebook.c: Keep popups on the right screen. Pointed out by Morten Welinder svn path=/trunk/; revision=22423
* Bug 558522 – scroll arrow painted insensitive even though there areMatthias Clasen2008-10-311-0/+3
| | | | | | | | | | | | | 2008-10-30 Matthias Clasen <mclasen@redhat.com> Bug 558522 – scroll arrow painted insensitive even though there are pages beyond the edge gtk/gtknotebook.c (gtk_notebook_real_insert_page): Redraw arrows. Pointed out by Christian Persch svn path=/trunk/; revision=21738
* Bug 553578 - tabs are not drawn correctlyMatthias Clasen2008-09-261-2/+19
| | | | | | | | | | | | | | 2008-09-26 Matthias Clasen <mclasen@redhat.com> Bug 553578 - tabs are not drawn correctly * gtk/gtknotebook.c: Track the visibility state of notebook tabs between allocations so that we know to redraw the tab labels if tabs are hidden and shown without changing position. Reported by Marek Kašík, patch by Owen Taylor. svn path=/trunk/; revision=21525
* Bug 329593 – Entering characters on a line very cpu intensive andMatthias Clasen2008-09-171-16/+17
| | | | | | | | | | | | | | slow * gtk/gtknotebook.c (gtk_notebook_page_allocate): Return a boolean that indicates whether the tab allocation has changed. (gtk_notebook_pages_allocate): Only redraw the tabs if their allocation has changed. (gtk_notebook_calculate_tabs_allocations): Remove unused return value. Patch by Owen Taylor svn path=/trunk/; revision=21414
* Allow changing page with arrows even on non-focusable notebook. (#528091)Milan Crha2008-08-201-8/+1
| | | | | | | | | | 2008-08-05 Milan Crha <mcrha@redhat.com> * gtk/gtknotebook.c: (gtk_notebook_do_arrow): Allow changing page with arrows even on non-focusable notebook. (#528091) svn path=/trunk/; revision=21170
* gtk/gtknotebook.c property nick and blurb should be marked with P_(), notSven Neumann2008-08-121-2/+2
| | | | | | | | | | | 2008-08-12 Sven Neumann <sven@gimp.org> * gtk/gtknotebook.c * gtk/gtkradiotoolbutton.c: property nick and blurb should be marked with P_(), not _(). svn path=/trunk/; revision=21091
* gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkentry.cMichael Natterer2008-08-121-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * gtk/gtkaccellabel.c * gtk/gtkcalendar.c * gtk/gtkclist.c * gtk/gtkentry.c * gtk/gtkeventbox.c * gtk/gtkfilechooserbutton.c * gtk/gtkfilechooserdefault.c * gtk/gtkhandlebox.c * gtk/gtkhsv.c * gtk/gtkiconview.c * gtk/gtkimage.c * gtk/gtklayout.c * gtk/gtklistitem.c * gtk/gtkmenuitem.c * gtk/gtkmessagedialog.c * gtk/gtknotebook.c * gtk/gtkpaned.c * gtk/gtkpathbar.c * gtk/gtkplug.c * gtk/gtkprintunixdialog.c * gtk/gtkrange.c * gtk/gtkrecentchooserdefault.c * gtk/gtkruler.c * gtk/gtksocket.c * gtk/gtktext.c * gtk/gtktextview.c * gtk/gtktoolbar.c * gtk/gtktreeitem.c * gtk/gtktreeview.c * gtk/gtkviewport.c * gtk/gtkwin32embedwidget.c: chain up unconditionally in realize(), unrealize(), map(), unmap(), style_set(), key_press_event() and size_request() svn path=/trunk/; revision=21088
* consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance)Michael Natterer2008-08-121-3/+3
| | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * gtk/*.c: consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance) instead of (*GTK_FOO_CLASS(parent_class))->bar(instance). svn path=/trunk/; revision=21085
* gtk/gtkmenu.c gtk/gtkmenuitem.c gtk/gtkmenushell.c gtk/gtknotebook.cSven Neumann2008-08-111-23/+23
| | | | | | | | | | | | | | | 2008-08-11 Sven Neumann <sven@gimp.org> * gtk/gtkmenu.c * gtk/gtkmenuitem.c * gtk/gtkmenushell.c * gtk/gtknotebook.c * gtk/gtkoldeditable.c * gtk/gtkpaned.c: use canonical signal names. svn path=/trunk/; revision=21063
* Set drag window background to be the GtkNotebook background color. This isCarlos Garnacho2008-08-041-0/+13
| | | | | | | | | | | 2008-08-04 Carlos Garnacho <carlos@imendio.com> * gtk/gtknotebook.c (gtk_notebook_expose): Set drag window background to be the GtkNotebook background color. This is a workaround to prevent black pixels in rounded tabs when reordering. Improves #368234. svn path=/trunk/; revision=20973
* Fix make check:Michael Natterer2008-07-041-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-04 Michael Natterer <mitch@imendio.com> Fix make check: * gtk/Makefile.am: remove GTK_DISABLE_DEPRECATED from INCLUDES again :-( * gtk/gtkclist.c * gtk/gtkcombo.c * gtk/gtkctree.c * gtk/gtklist.c * gtk/gtklistitem.c * gtk/gtknotebook.c * gtk/gtkobject.c * gtk/gtkoldeditable.c * gtk/gtkpixmap.c * gtk/gtktext.c * gtk/gtktree.c * gtk/gtktreeitem.c: don't #define it again before including gtkalias.h after it has been #undef'ed before. svn path=/trunk/; revision=20763
* Allocate with GSlice:Michael Natterer2008-07-041-2/+2
| | | | | | | | | | | | | | | 2008-07-04 Michael Natterer <mitch@imendio.com> Allocate with GSlice: * gtk/gtkassistant.c: GtkAssistantPage * gtk/gtkcellview.c: GtkCellViewCellInfo * gtk/gtkentry.c: GtkEntryPasswordHint, PopupInfo * gtk/gtkfilefilter.c: FilterRule * gtk/gtknotebook.c: GtkNotebookPage svn path=/trunk/; revision=20761
* 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