File: upgrading-to-gtk-1.1.txt

package info (click to toggle)
glade-nonus 0.6.4-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 12,152 kB
  • ctags: 3,879
  • sloc: ansic: 54,332; sh: 6,839; makefile: 743; sed: 93
file content (42 lines) | stat: -rw-r--r-- 1,338 bytes parent folder | download | duplicates (4)
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
38
39
40
41
42

How to Upgrade Applications Created With Glade & GTK 1.0 to work with GTK 1.1
=============================================================================

There were quite a few changes between GTK 1.0 and 1.1, and so source code
written for GTK 1.0 will not work with GTK 1.1.

First, you need to recompile Glade with GTK 1.1.
Then you can load your XML file into Glade and regenerate the source code.

However, there are a couple of differences in the XML files used with GTK 1.0
and GTK 1.1, due to changes in a few GTK widgets.

I think the main problem is GtkCList - in GTK 1.0 it handles scrolling itself.
In GTK 1.1 you have to put it inside a GtkScrolledWindow.
You can edit the XML yourself and place a scrolled window around the CList,
e.g.

    <widget>
      <class>GtkScrolledWindow</class>

      <widget>
        <class>GtkCList</class>
        ...

      </widget>
    </widget>

You may also need to move any <child> options from the clist up to the
scrolled window.


If you used the GtkText widget you may also want to place that in a scrolled
window as well. You'll also probably want to set the horizontal scrollbar
policy to GTK_POLICY_NEVER so the horizontal scrollbar is never shown, since
GtkText doesn't support horizontal scrolling.



Let me know of any other changes needed, and I'll add them here.

Damon