Commit Graph

16 Commits

Author SHA1 Message Date
Ignacio Rodríguez
b6d449681d Example fixes
- replaced Gtk.HBox/Gtk.VBox by GtkBox as seen in [1] and [2]
GtkHbox and GtkVBox are deprecated
- use delete-event instead of destroy event in GtkWindow
- replaced icon_size for pixel_size where used
it's also deprecated as seen in commit [3]
- use sugar_theme in all examples; set it manually not by just
importing common module
- fixed GtkBox.pack_start arguments
- flake/pep8 fixes

[1] https://developer.gnome.org/gtk3/stable/GtkHBox.html
[2] https://developer.gnome.org/gtk3/stable/GtkVBox.html
[3] 5802d67ee1
2017-01-14 13:02:50 -03:00
Ignacio Rodríguez
a735c7a6ce fixed the flake8 errors for examples
doesn't affect that much the code, it just remove
unused modules and make it look better.
2017-01-05 03:44:33 -03:00
William Orr
30acc63d51 pep8'd examples 2013-06-11 15:27:59 +02:00
Daniel Narvaez
db448c4eea Remove a lot of unused imports
Signed-off-by: Daniel Narvaez <dwnarvaez@gmail.com>
2013-04-03 22:01:55 +02: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 <silbe@activitycentral.com>
2011-12-13 17:19:52 -03:00
Simon Schampijer
8f1a821d68 Rename imports from sugar to sugar3
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Sascha Silbe <silbe@activitycentral.com>
2011-11-14 19:17:32 +01:00
Sascha Silbe
e2231d5620 PEP8 cleanup: fix number of blank lines
Caught by pep8.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
2010-11-23 17:14:32 +01:00
Aleksey Lim
353564f12c Fix review issues 2009-07-31 03:49:05 +00:00
Aleksey Lim
3dd0ac8432 Rename ToolbarBox.bar to ToolbarBox.toolbar 2009-07-30 16:25:04 +00:00
Aleksey Lim
7ca9574ca1 Rename ToolbarBox.top to ToolbarBox.bar 2009-07-30 16:20:10 +00:00
Aleksey Lim
61ab4110fa Rename toolbar.py to toolbarbox.py 2009-07-30 15:25:30 +00:00
Aleksey Lim
165b9e1e05 Provide fast access to all sub-widgets in Toolbar 2009-07-13 03:11:39 +00:00
Aleksey Lim
5d2c5b98ff Do not hide sub-widget when sub-palette was opened 2009-07-13 02:58:49 +00:00
Aleksey Lim
e256b96366 Implement palette mode 2009-07-12 01:42:23 +00:00
Aleksey Lim
f9de29f539 Delete sub-widgets clearly 2009-07-11 14:22:05 +00:00
Aleksey Lim
2fc1cab92d Add simple toolbars example 2009-07-10 04:07:10 +00:00