16 Commits (master)

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
7 years ago
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.
7 years ago
William Orr 30acc63d51 pep8'd examples 11 years ago
Daniel Narvaez db448c4eea Remove a lot of unused imports
Signed-off-by: Daniel Narvaez <dwnarvaez@gmail.com>
11 years ago
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>
13 years ago
Simon Schampijer 8f1a821d68 Rename imports from sugar to sugar3
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Sascha Silbe <silbe@activitycentral.com>
13 years ago
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>
14 years ago
Aleksey Lim 353564f12c Fix review issues 15 years ago
Aleksey Lim 3dd0ac8432 Rename ToolbarBox.bar to ToolbarBox.toolbar 15 years ago
Aleksey Lim 7ca9574ca1 Rename ToolbarBox.top to ToolbarBox.bar 15 years ago
Aleksey Lim 61ab4110fa Rename toolbar.py to toolbarbox.py 15 years ago
Aleksey Lim 165b9e1e05 Provide fast access to all sub-widgets in Toolbar 15 years ago
Aleksey Lim 5d2c5b98ff Do not hide sub-widget when sub-palette was opened 15 years ago
Aleksey Lim e256b96366 Implement palette mode 15 years ago
Aleksey Lim f9de29f539 Delete sub-widgets clearly 15 years ago
Aleksey Lim 2fc1cab92d Add simple toolbars example 15 years ago