Commit Graph
12 Commits
Author SHA1 Message Date
Sascha Silbe c653cdf4dc configure.ac: Require gobject-introspection
configure.ac already checked if gobject-introspection is installed, but
instead of aborting with an error it continued and silently omitted crucial
parts of the build system, confusing the user with the error message

make[4]: *** No rule to make target `SugarExt-1.0.gir', needed by `all-am'.  Stop.

much later in the build. Fix this by using the appropriate autoconf macro.

Signed-off-by: Sascha Silbe <[email protected]>
Acked-by: Simon Schampijer <[email protected]>
2012-03-21 08:00:01 +01:00
Sascha Silbe c82a775267 Use accessor functions for data fields
The following data fields that were provided by PyGTK are not accessible
directly in GTK3+pygi and need to be replaced by accessor calls:

Adjustment.lower
Adjustment.page_size
Adjustment.upper
Adjustment.value
Bin.child
Widget.parent
Widget.style
Widget.window

Based on patches by Daniel Drake <[email protected]>.

Signed-off-by: Sascha Silbe <[email protected]>
2011-12-13 17:19:53 -03:00
Sascha Silbe 327ca88ca8 Adapt to Widget.get_child_requisition() API changes
In PyGTK Widget.get_child_requisition() returned a tuple [1]. In GTK3+pygi
a Requisition object is returned instead.

Based on a patch by Benjamin Berg <[email protected]>.

[1] http://developer.gnome.org/pygtk/stable/class-gtkwidget.html#method-gtkwidget--get-child-requisition
[2] http://developer.gnome.org/gtk/stable/GtkWidget.html#gtk-widget-get-child-requisition

Signed-off-by: Sascha Silbe <[email protected]>
2011-12-13 17:19:52 -03:00
Sascha Silbe 820efa56b9 Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi.
This is only on a best-effort basis; the code will be in a broken state after
this patch and need to be fixed manually.

The purpose of committing the intermediate, non-working output is to make it
reproducible. It's impractical to manually review the changes.

The exact version used was 4f637212f13b197a95c824967a58496b9e3b877c from the
main pygobject repository [1] plus a custom patch [2] that hasn't been sent
upstream yet.

[1] git://git.gnome.org/pygobject
[2] https://sascha.silbe.org/patches/pygobject-convert-sugar-20111122.patch

Signed-off-by: Sascha Silbe <[email protected]>
2011-12-13 17:19:52 -03:00
Sascha Silbe aed295ec4e Import GDK in preparation for GTK3 conversion
Some parts of GTK moved to GDK, so we need to import the latter for things to
work after the conversion script runs.

Signed-off-by: Sascha Silbe <[email protected]>
2011-12-13 17:19:52 -03:00
Sascha Silbe 3553fbd2f0 remove obsolete comment
GTK bug #502871 [1] has been fixed in 2007.

[1] http://bugzilla.gnome.org/show_bug.cgi?id=502871

Signed-off-by: Sascha Silbe <[email protected]>
Acked-by: Simon Schampijer <[email protected]>
2011-05-20 23:13:10 +02:00
Sascha Silbe 567bd961a5 Avoid showing decorated windows during start-up (OLPC#10713)
As a side effect, activity start-up is now subjectively faster, maybe even
objectively (due to avoiding a resize).

Tested on XO-1 running Debian Squeeze.

Acked-By: Simon Schampijer <[email protected]>
2011-04-11 18:00:29 +02:00
Sascha Silbe 85e714ecb1 fix regressions introduced by 29582de6 (fix for SL#1742)
GTK pops down the palette before it invokes the actions on the
menu item. We need to postpone destruction of the palette until
after all signals have propagated from the menu item to the
palette owner.

Symptoms included the "View Details" palette menu item in the Journal list
view not working.

Signed-off-by: Sascha Silbe <[email protected]>
Acked-by: Simon Schampijer <[email protected]>
2011-03-27 16:39:04 +02:00
Sascha Silbe 17537c7710 Window: allow removing the toolbar_box
Allow the toolbar_box to be removed by setting it to None, like is supported
for canvas.

Signed-off-by: Sascha Silbe <[email protected]>
Acked-by: Simon Schampijer <[email protected]>
2011-02-17 23:23:33 +01:00
Sascha Silbe 9d45394d40 fix whitespace mistake introduced by c7a80a1
Signed-off-by: Sascha Silbe <[email protected]>
Acked-by: Simon Schampijer <[email protected]>
2011-02-15 21:45:46 +00:00
Sascha Silbe 11bfce1a31 sugar.activity.i18n: add pgettext()
Python 2 will never have pgettext() [1], so we need to ship our own version.
sugar.activity.i18n is the best place for that.

[1] http://bugs.python.org/issue2504#msg122482

Signed-off-by: Sascha Silbe <[email protected]>
Acked-by: Simon Schampijer <[email protected]>
2011-02-15 21:44:57 +00:00
Sascha Silbe 924e2e62bf fix sugar-emulator detection logic broken by 814ab2d (has_key() cleanup)
This broke Shutdown and Restart (buddy menu).

Signed-off-by: Sascha Silbe <[email protected]>
2011-02-05 16:28:24 +01:00