[Gtk-sharp-list] Problem with ScrolledWindow
tapia
tapia at mcatalog.net
Tue May 24 05:24:39 EDT 2005
On lun, 2005-05-23 at 18:42 +0100, Paulo Pires wrote:
> Hi
>
> Could u try to make a test-case and attach it?
>
> PP
Yeah, sure. I attach it.
For compiling:
mcs prueba.cs -resource:prueba.glade -pkg:gtk-sharp-2.0
-pkg:glade-sharp-2.0 -pkg:gnome-sharp-2.0 -pkg:gecko-sharp
Thank you.
C.
-------------- next part --------------
using System;
using Gtk;
using Glade;
using Gecko;
public class Prueba
{
[Glade.Widget] private Gnome.App app1;
[Glade.Widget] private ScrolledWindow swPresentation;
private Gnome.Program program;
public static void Main (string[] args)
{
new Prueba (args);
}
public Prueba (string[] args)
{
program = new Gnome.Program ("mCatalog", "1.0", Gnome.Modules.UI, args);
Glade.XML gxml = new Glade.XML (null, "prueba.glade", "app1", null);
gxml.Autoconnect (this);
WebControl wc = new WebControl ();
swPresentation.AddWithViewport (wc);
app1.ShowAll ();
}
}
-------------- next part --------------
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<requires lib="gnome"/>
<requires lib="bonobo"/>
<widget class="GnomeApp" id="app1">
<property name="visible">True</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
<property name="enable_layout_config">True</property>
<child internal-child="dock">
<widget class="BonoboDock" id="bonobodock1">
<property name="visible">True</property>
<property name="allow_floating">True</property>
<child>
<widget class="GtkScrolledWindow" id="swPresentation">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="shadow_type">GTK_SHADOW_NONE</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child>
<placeholder/>
</child>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child internal-child="appbar">
<widget class="GnomeAppBar" id="appbar1">
<property name="visible">True</property>
<property name="has_progress">True</property>
<property name="has_status">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
</glade-interface>
More information about the Gtk-sharp-list
mailing list