It's not used anywhere anymore.
</child>
</object>
</child>
- <child>
- <object class="GtkToolbar">
- <property name="hexpand">1</property>
- <property name="toolbar-style">icons</property>
- <style>
- <class name="inline-toolbar"/>
- </style>
- <child>
- <object class="GtkToggleToolButton">
- <property name="homogeneous">1</property>
- <property name="label" translatable="yes">Normal</property>
- <property name="use-underline">1</property>
- <property name="icon-name">list-add-symbolic</property>
- </object>
- </child>
- <child>
- <object class="GtkToggleToolButton">
- <property name="homogeneous">1</property>
- <property name="label" translatable="yes">Normal</property>
- <property name="use-underline">1</property>
- <property name="icon-name">list-add-symbolic</property>
- </object>
- </child>
- <child>
- <object class="GtkToggleToolButton">
- <property name="homogeneous">1</property>
- <property name="label" translatable="yes">Active</property>
- <property name="use-underline">1</property>
- <property name="icon-name">list-remove-symbolic</property>
- <property name="active">1</property>
- </object>
- </child>
- <child>
- <object class="GtkToggleToolButton">
- <property name="homogeneous">1</property>
- <property name="label" translatable="yes">Active</property>
- <property name="use-underline">1</property>
- <property name="icon-name">list-remove-symbolic</property>
- <property name="active">1</property>
- </object>
- </child>
- <child>
- <object class="GtkToggleToolButton">
- <property name="homogeneous">1</property>
- <property name="sensitive">0</property>
- <property name="label" translatable="yes">Insensitive</property>
- <property name="use-underline">1</property>
- <property name="icon-name">edit-find-symbolic</property>
- </object>
- </child>
- <child>
- <object class="GtkToggleToolButton">
- <property name="homogeneous">1</property>
- <property name="sensitive">0</property>
- <property name="label" translatable="yes">Insensitive Active</property>
- <property name="use-underline">1</property>
- <property name="icon-name">go-up-symbolic</property>
- <property name="active">1</property>
- </object>
- </child>
- </object>
- </child>
<child>
<object class="GtkBox">
<property name="spacing">10</property>
</child>
</object>
</child>
- <child>
- <object class="GtkToolbar">
- <property name="hexpand">1</property>
- <property name="toolbar-style">icons</property>
- <style>
- <class name="inline-toolbar"/>
- </style>
- <child>
- <object class="GtkToggleToolButton">
- <property name="homogeneous">1</property>
- <property name="label" translatable="yes">Normal</property>
- <property name="use-underline">1</property>
- <property name="icon-name">list-add-symbolic</property>
- </object>
- </child>
- <child>
- <object class="GtkToggleToolButton">
- <property name="homogeneous">1</property>
- <property name="label" translatable="yes">Normal</property>
- <property name="use-underline">1</property>
- <property name="icon-name">list-add-symbolic</property>
- </object>
- </child>
- <child>
- <object class="GtkToggleToolButton">
- <property name="homogeneous">1</property>
- <property name="label" translatable="yes">Active</property>
- <property name="use-underline">1</property>
- <property name="icon-name">list-remove-symbolic</property>
- <property name="active">1</property>
- </object>
- </child>
- <child>
- <object class="GtkToggleToolButton">
- <property name="homogeneous">1</property>
- <property name="label" translatable="yes">Active</property>
- <property name="use-underline">1</property>
- <property name="icon-name">list-remove-symbolic</property>
- <property name="active">1</property>
- </object>
- </child>
- <child>
- <object class="GtkToggleToolButton">
- <property name="homogeneous">1</property>
- <property name="sensitive">0</property>
- <property name="label" translatable="yes">Insensitive</property>
- <property name="use-underline">1</property>
- <property name="icon-name">edit-find-symbolic</property>
- </object>
- </child>
- <child>
- <object class="GtkToggleToolButton">
- <property name="homogeneous">1</property>
- <property name="sensitive">0</property>
- <property name="label" translatable="yes">Insensitive Active</property>
- <property name="use-underline">1</property>
- <property name="icon-name">go-up-symbolic</property>
- <property name="active">1</property>
- </object>
- </child>
- </object>
- </child>
<child>
<object class="GtkBox">
<property name="spacing">10</property>
* with widgets to inform the theme about intended rendering.
*
* This demo shows some common examples where theming features
- * of GTK are used for certain effects: primary toolbars,
- * inline toolbars and linked buttons.
+ * of GTK are used for certain effects: primary toolbars
+ * and linked buttons.
*/
#include <gtk/gtk.h>
GTK_STYLE_CLASS_HORIZONTAL
GTK_STYLE_CLASS_IMAGE
GTK_STYLE_CLASS_INFO
-GTK_STYLE_CLASS_INLINE_TOOLBAR
GTK_STYLE_CLASS_INSERTION_CURSOR
GTK_STYLE_CLASS_LABEL
GTK_STYLE_CLASS_LEFT
*/
#define GTK_STYLE_CLASS_PRIMARY_TOOLBAR "primary-toolbar"
-/**
- * GTK_STYLE_CLASS_INLINE_TOOLBAR:
- *
- * A CSS class to match inline toolbars.
- *
- * Refer to individual widget documentation for used style classes.
- */
-#define GTK_STYLE_CLASS_INLINE_TOOLBAR "inline-toolbar"
-
/**
* GTK_STYLE_CLASS_STATUSBAR:
*
> box > box > label { font-weight: bold; }
}
- // inline-toolbar buttons
- .inline-toolbar & { @extend %linked; }
-
.primary-toolbar & { -gtk-icon-shadow: none; } // tango icons don't need shadows
.linked:not(.vertical) > & { @extend %linked; }
}
-// all the following is for the +|- buttons on inline toolbars, that way
-// should really be deprecated...
-.inline-toolbar toolbutton > button { // redefining the button look is
- // needed since those are flat...
- @include button(normal);
-
- &:hover { @include button(hover); }
-
- &:active,
- &:checked{ @include button(active); }
-
- &:disabled {
- @include button(insensitive);
-
- &:active,
- &:checked { @include button(insensitive-active); }
- }
-
- &:backdrop {
- @include button(backdrop);
-
- &:active,
- &:checked { @include button(backdrop-active); }
-
- &:disabled {
- @include button(backdrop-insensitive);
-
- &:active,
- &:checked { @include button(backdrop-insensitive-active); }
- }
- }
-}
-
-// More inline toolbar buttons
-toolbar.inline-toolbar toolbutton {
- &:dir(ltr) {
- &:not(:first-child) > button.flat { @extend %linked_not_left; }
- &:not(:last-child) > button.flat { @extend %linked_not_right; }
- }
-
- &:dir(rtl) {
- &:not(:first-child) > button.flat { @extend %linked_not_right; }
- &:not(:last-child) > button.flat { @extend %linked_not_left; }
- }
-}
-
%linked_not_left {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
// toolbar separators
&.horizontal separator { margin: 0 7px 1px 6px; }
&.vertical separator { margin: 6px 1px 7px 0; }
-
- &:not(.inline-toolbar):not(.osd) {
- // workaround: add margins to the children of tool items to simulate
- // spacing, ignore the overflow button (.toggle) and the overflow menu
- // (.popup)
- > *:not(.toggle):not(.popup) > * {
- margin-right: 1px;
- margin-bottom: 1px;
- }
- }
-}
-
-//searchbar, location-bar & inline-toolbar
-.inline-toolbar {
- @extend %toolbar;
-
- @extend %darkbar;
-
- padding: 3px;
- border-width: 0 1px 1px;
- border-radius: 0 0 5px 5px;
}
+//searchbar & location-bar
searchbar {
padding: 0px;
>revealer>box {
}
}
- //inline-toolbar buttons
- .inline-toolbar & { @extend %linked; }
-
.primary-toolbar & { -gtk-icon-shadow: none; } // tango icons don't need shadows
.linked:not(.vertical) > & { @extend %linked; }
}
-// all the following is for the +|- buttons on inline toolbars, that way
-// should really be deprecated...
-.inline-toolbar toolbutton > button { // redefining the button look is
- // needed since those are flat...
- @include button(normal);
-
- &:hover { @include button(hover); }
-
- &:active,
- &:checked{ @include button(active); }
-
- &:disabled {
- @include button(insensitive);
-
- &:active,
- &:checked { @include button(insensitive-active); }
- }
-
- &:backdrop {
- @include button(backdrop);
-
- &:active,
- &:checked { @include button(backdrop-active); }
-
- &:disabled {
- @include button(backdrop-insensitive);
-
- &:active,
- &:checked { @include button(backdrop-insensitive-active); }
- }
- }
-}
-
-// More inline toolbar buttons
-toolbar.inline-toolbar toolbutton {
- &:dir(ltr) {
- &:not(:first-child) > button.flat { @extend %linked_not_left; }
- &:not(:last-child) > button.flat { @extend %linked_not_right; }
- }
-
- &:dir(rtl) {
- &:not(:first-child) > button.flat { @extend %linked_not_right; }
- &:not(:last-child) > button.flat { @extend %linked_not_left; }
- }
-}
-
%linked_not_left {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
padding: 12px;
& label { color: $osd_fg_color; }
}
- //searchbar & inline-toolbar
- &.inline-toolbar {
- @extend %inset-bar;
- border-width: 0 1px 1px;
- padding: 3px;
- border-radius: 0 0 4px 4px;
- }
+ //searchbar
&.vertical {
border-right: 1px solid $borders_color;
&:dir(rtl) {
testsuite/tools/simplify-data-3to4/office-runner.ui
testsuite/tools/simplify-data-3to4/stack.ui
testsuite/tools/simplify-data/test3.ui
-tests/visuals/inline-toolbar-horizontal.ui
-tests/visuals/inline-toolbar-vertical.ui
tests/visuals/linked-buttons-horizontal.ui
tests/visuals/linked-buttons-vertical.ui
tests/visuals/primary-toolbar.ui
testsuite/tools/simplify-data-3to4/office-runner.ui
testsuite/tools/simplify-data-3to4/stack.ui
testsuite/tools/simplify-data/test3.ui
-tests/visuals/inline-toolbar-horizontal.ui
-tests/visuals/inline-toolbar-vertical.ui
tests/visuals/linked-buttons-horizontal.ui
tests/visuals/linked-buttons-vertical.ui
tests/visuals/primary-toolbar.ui
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<interface>
- <!-- interface-requires gtk+ 3.0 -->
- <object class="GtkWindow" id="window1">
- <property name="can_focus">False</property>
- <property name="default_width">600</property>
- <child>
- <object class="GtkGrid" id="grid">
- <property name="row-spacing">6</property>
- <property name="orientation">vertical</property>
- <child>
- <object class="GtkToolbar" id="toolbar1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="hexpand">True</property>
- <style>
- <class name="inline-toolbar"/>
- </style>
- <child>
- <object class="GtkToggleToolButton" id="toolbutton1">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">Normal</property>
- <property name="use_underline">True</property>
- <property name="icon_name">list-add-symbolic</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToggleToolButton" id="toolbutton2">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">Normal</property>
- <property name="use_underline">True</property>
- <property name="icon_name">list-add-symbolic</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToggleToolButton" id="toolbutton3">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">Active</property>
- <property name="use_underline">True</property>
- <property name="icon_name">list-remove-symbolic</property>
- <property name="active">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToggleToolButton" id="toolbutton4">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">Active</property>
- <property name="use_underline">True</property>
- <property name="icon_name">list-remove-symbolic</property>
- <property name="active">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToggleToolButton" id="toolbutton5">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="can_focus">False</property>
- <property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">Insensitive</property>
- <property name="use_underline">True</property>
- <property name="icon_name">edit-find-symbolic</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToggleToolButton" id="toolbutton6">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="can_focus">False</property>
- <property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">Insensitive Active</property>
- <property name="use_underline">True</property>
- <property name="icon_name">go-up-symbolic</property>
- <property name="active">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- </object>
- </child>
- </object>
- </child>
- </object>
-</interface>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<interface>
- <!-- interface-requires gtk+ 3.0 -->
- <object class="GtkWindow" id="window1">
- <property name="can_focus">False</property>
- <property name="default_width">300</property>
- <property name="default_height">350</property>
- <child>
- <object class="GtkGrid" id="grid">
- <property name="row-spacing">6</property>
- <property name="orientation">vertical</property>
- <child>
- <object class="GtkToolbar" id="toolbar1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="vexpand">True</property>
- <property name="orientation">vertical</property>
- <property name="toolbar-style">icons</property>
- <style>
- <class name="inline-toolbar"/>
- </style>
- <child>
- <object class="GtkToggleToolButton" id="toolbutton1">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">Normal</property>
- <property name="use_underline">True</property>
- <property name="icon_name">list-add-symbolic</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToggleToolButton" id="toolbutton2">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">Normal</property>
- <property name="use_underline">True</property>
- <property name="icon_name">list-add-symbolic</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToggleToolButton" id="toolbutton3">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">Active</property>
- <property name="use_underline">True</property>
- <property name="icon_name">list-remove-symbolic</property>
- <property name="active">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToggleToolButton" id="toolbutton4">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">Active</property>
- <property name="use_underline">True</property>
- <property name="icon_name">list-remove-symbolic</property>
- <property name="active">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToggleToolButton" id="toolbutton5">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="can_focus">False</property>
- <property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">Insensitive</property>
- <property name="use_underline">True</property>
- <property name="icon_name">edit-find-symbolic</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToggleToolButton" id="toolbutton6">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="can_focus">False</property>
- <property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">Insensitive Active</property>
- <property name="use_underline">True</property>
- <property name="icon_name">go-up-symbolic</property>
- <property name="active">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- </object>
- </child>
- </object>
- </child>
- </object>
-</interface>