/usr/share/gtk-sharp3-examples/GtkDemo/DemoThemingStyleClasses.cs is in gtk-sharp3-examples 2.99.3-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | /* CSS Theming/Style Classes
*
* GTK+ uses CSS for theming. Style classes can be associated
* 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.
*/
using System;
using Gtk;
namespace GtkDemo
{
[Demo ("Style Classes", "DemoThemingStyleClasses.cs", "CSS Theming")]
public class DemoThemingStyleClasses : Window
{
public DemoThemingStyleClasses () : base ("Style Classes")
{
BorderWidth = 12;
var builder = new Builder ("theming.ui");
var grid = (Widget)builder.GetObject ("grid");
grid.ShowAll ();
Add (grid);
Show ();
}
protected override bool OnDeleteEvent (Gdk.Event evt)
{
Destroy ();
return true;
}
}
}
|