summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert GailNotebook to GtkNotebookAccessibleMatthias Clasen2011-07-051-0/+3
|
* Speed up page insertionPaolo Borelli2011-06-261-4/+4
| | | | | Make sure to call widget_set_child_visible(false) on all tabs except the current before calling widget_set_parent.
* gtk: Use const instead G_CONST_RETURNJavier Jardón2011-06-101-2/+2
|
* API: Change semantics of gtk_container_get_child_path()Benjamin Otte2011-06-021-3/+4
| | | | | | Include the child widget path in the returned path now. This allows customizing the path of the current widgets - like adding flags to child widgets (and maybe siblings in the future).
* notebook: Implement height_for_width and width_for_height gettersBenjamin Otte2011-06-021-0/+29
|
* notebook: Rewrite size request function for wfhBenjamin Otte2011-06-021-28/+74
|
* notebook: Split out tabs size computation into its own functionBenjamin Otte2011-06-021-183/+206
|
* notebook: Compute tab width in a simpler wayBenjamin Otte2011-06-011-6/+6
| | | | | | | | This code should be more obvious: The check only needs to check for scrollable widgets, and only needs to compare to tab_width. As a side note, for vis_pages == 1, tab_width will be smaller than tab_max + stuff, so this code will not behave differently.
* notebook: Remove uneeded function declarationBenjamin Otte2011-06-011-2/+0
|
* notebook: Include arrow size in tab size computationBenjamin Otte2011-06-011-6/+3
| | | | | | | | | | | | We don't want tabs to resize when a 2nd page is added, just because the scroll arrows are now visible. And we do want the arrow size to be included. Note: Previosuly this code was never run, as the check requisition->width < tab_width was only run when tab_width wasn't computed, so was still equal to 0 (same for the height). So what this patch essentially does it add the functionality of the if switch.
* gtk/gtknotebook: gtk_misc_set_alignment replacingDiego Celix2011-05-311-2/+4
| | | | | | | | Replacing the function gtk_misc_set_alignment () with gtk_widget_set_halign () and gtk_widget_set_valign () in gtk/gtknotebook.c https://bugzilla.gnome.org/show_bug.cgi?id=650762
* notebook: Match horizontal and vertical code pathsBenjamin Otte2011-04-291-1/+1
| | | | I have no idea what this code does, but it looks better now. :o
* notebook: Respect left border when allocating tab widgetsBenjamin Otte2011-04-291-2/+3
| | | | This mirrors the code for the other tab locations.
* notebook: Respect padding when computing tabs for left/rightBenjamin Otte2011-04-291-3/+8
| | | | This mirrors the top/bottom code
* Don't adjust for values that we have previously adjusted forBenjamin Otte2011-04-291-0/+21
| | | | | The padding had been taken into account by the computation of priv->allocation, so don't compute it twice.
* notebook: Use the right padding for inactive tabsBenjamin Otte2011-04-291-4/+6
|
* notebook: Warn if builder file defines multiple tab widgets per pageBenjamin Otte2011-04-281-0/+3
| | | | | | Glade causes such files when a notebook page has no content. And it's especially bad because the last tab widget wins, so the label displayed in Glade will not be what you see when you run the app.
* Do not leak list when drawing notebook.Paolo Borelli2011-04-081-7/+5
| | | | | | When we construct the list in the other order we must free it. https://bugzilla.gnome.org/show_bug.cgi?id=646886
* notebook: Only reset style on tab labels when it actually changesBenjamin Otte2011-03-271-1/+13
|
* notebook: don't forget to reset the style after setting show-tabsCosimo Cecchi2011-03-171-0/+1
| | | | | This fixes a regression after commit b04f4c536aeab4281a9f0117e67accae19d691b9
* notebook: Don't set notebook style with hidden tabsBastien Nocera2011-03-171-0/+5
| | | | | | | | | When tabs are not shown, and the notebook is used as a container, we should not set the notebook style, otherwise the theme has no way to know whether tabs are shown or not, and which colour to draw the background. https://bugzilla.gnome.org/show_bug.cgi?id=640692
* notebook: make GtkNotebook respect the focus-padding style propertyCosimo Cecchi2011-03-141-24/+24
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=644348
* notebook: add an 'initial-gap' style propertyCosimo Cecchi2011-03-091-0/+22
| | | | | | It adds a gap before the first tab in the notebook. https://bugzilla.gnome.org/show_bug.cgi?id=643841
* notebook: flip the render orderCosimo Cecchi2011-03-071-1/+37
| | | | | | | | | | | The render order for tabs is now - left to right until the active tab - right to left until the active tab - active tab This allows themes that use non-straight lines for the tab curvature to draw them not worrying about flipping one side after the active tab.
* notebook: fixup the last commitCosimo Cecchi2011-03-061-4/+9
| | | | | | | | Let the tab overlap eat the padding, otherwise having tab-overlap > tab-curvature without cutting the label is impossible. This way we give the label widget all the allocation possible before giving up and cutting it if the values for tab-overlap are too extreme for the given padding.
* notebook: make sure the label widget allocation not exceeds the overlapCosimo Cecchi2011-03-061-1/+34
|
* notebook: make sure the allocation keeps track of the tab curvatureCosimo Cecchi2011-03-061-2/+2
| | | | | This was a genuine typo, because "padding" was calculated but unused in this branch of the code.
* GtkNotebooks: fix regressions from tab-pack removalMatthias Clasen2011-03-031-62/+48
|
* GtkNotebook: Don't let tab allocation go negativeMatthias Clasen2011-03-031-2/+2
|
* Silence new gcc warningsMatthias Clasen2011-01-231-35/+25
| | | | | gcc 4.6.0 has started to warn about set-but-unused variables. So don't do that, then.
* GtkNotebook: only set/unset active flag on the tab labelCarlos Garnacho2011-01-231-2/+2
|
* [GI] Add missing (transfer) annotationsPavel Holejsovsky2011-01-201-1/+2
|
* Avoid calling gtk_widget_is_visible(NULL) in _gtk_notebook_get_tab_flags().Tristan Van Berkom2011-01-151-1/+1
| | | | The tab can be NULL here when GtkNotebook:show-tabs is FALSE.
* Remove gtktypeutils altogetherMatthias Clasen2011-01-041-0/+1
| | | | | | Based on patches by Javier Jardón. https://bugzilla.gnome.org/show_bug.cgi?id=629955
* Drop explicit includes of gdkkeysyms.hMatthias Clasen2011-01-041-3/+1
| | | | | These are no longer needed. At the same time, port gtkimcontextsimpleseqs.h to use the new GDK_KEY_ symbols.
* Formatting fixes and whitespace cleanupsMatthias Clasen2011-01-041-2036/+2035
|
* Remove pack property altogetherMatthias Clasen2011-01-041-2/+0
|
* Remove pack consideration from tab drawingMatthias Clasen2011-01-041-72/+16
|
* Don't consider pack when allocating tabsMatthias Clasen2011-01-041-82/+51
|
* Drop pack consideration from gtk_notebook_search_pageMatthias Clasen2011-01-041-15/+3
|
* Drop internal function to find page positionMatthias Clasen2011-01-041-27/+2
|
* Remove pack consideration from tab dndMatthias Clasen2011-01-041-14/+8
|
* Remove pack consideration from tab reorderingMatthias Clasen2011-01-041-20/+12
|
* Remove pack arguments from some internal functionsMatthias Clasen2011-01-041-25/+12
| | | | This removes pack from gtk_notebook_{set,query}_tab_label_packing.
* Remove the deprecated GtkNotebook:tab-pack child propertyMatthias Clasen2011-01-041-33/+1
|
* GtkNotebook: fix reference to no-longer-exiting function in docsMatthias Clasen2011-01-031-1/+1
|
* GtkNotebook: remove unneeded callCarlos Garnacho2011-01-041-2/+0
|
* API: gdk: gdk_display_get_device_state() => gdk_device_get_position()Benjamin Otte2010-12-271-3/+2
| | | | | The API was not display-specific, but belonged to the device. Also, we didn't find a user of the modifier mask, so we dropped it.
* notebook: Use nondeprecated API to query coordinatesBenjamin Otte2010-12-271-1/+3
|
* Add a default handler for drag_failedMatthias Clasen2010-12-221-7/+3
| | | | And use it in notebook dnd.