Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Import sugar-base into sugar-toolkitsilbe-rework-20111122Daniel Drake2011-11-2227-3/+5357
| | | | | | | Probably needs cleaning up a bit. And we use pygtk-codegen, ugh... [squashed two patches into one] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Add examples for Alert, Animator, ComboBox, IconEntry and NotebookSimon Schampijer2011-11-225-0/+158
| | | | | [squashed two patches into one] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Use rsvg wrapper while rsvg gains introspection supportRaul Gutierrez Segales2011-11-221-9/+6
|
* Add wrapper for rsvgRaul Gutierrez Segales2011-11-224-2/+233
| | | | | [split patch into several parts] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Add GdkWrapper to access non-introspectable Gdk APIRaul Gutierrez Segales2011-11-224-3/+105
|
* Port key handling code to GTK3Raul Gutierrez Segales2011-11-223-19/+22
| | | | | [split patch into several parts, added minimal description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* _TimeoutIcon: use markup instead of Pango for bold textSimon Schampijer2011-11-221-5/+1
| | | | | | | | | In Pango 'Pango.attr_weight_new' is not yet introspectable [1]. [1] https://bugzilla.gnome.org/show_bug.cgi?id=646788 [changed description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Replace "expose-event" signal by a new "draw" signalSimon Schampijer2011-11-222-11/+10
| | | | | | | | | | | | | GtkWidget "expose-event" signal has been replaced by a new "draw" signal [1]. The context is already clipped [2], so do not base it on the values returned by get_allocation like before. [1] http://developer.gnome.org/gtk3/3.0/ch25s02.html#id1467092 [2] http://developer.gnome.org/gtk3/3.0/GtkWidget.html#GtkWidget-draw [squashed with a patch by Benjamin Berg <benjamin@sipsolutions.net>] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Tray gtk3 fixesDaniel Drake2011-11-221-3/+3
|
* Use gdk_x11_set_sm_client_id instead of the deprecated oneRaul Gutierrez Segales2011-11-221-1/+1
|
* Use GObject constructor for Gtk.AlignmentSimon Schampijer2011-11-225-6/+6
| | | | | | | | | | | | | | With PyGTK, all parameters of the Alignment constructor had defaults [1]. With GTK3+pygi, when using the explicit constructor (Alignment.new() resp. gtk_alignment_new() [2]), all values would need to be passed. However when using the GObject constructor, named properties can be passed in instead and we only need to pass those that different from the default. [1] http://developer.gnome.org/pygtk/stable/class-gtkalignment.html#constructor-gtkalignment [2] http://developer.gnome.org/gtk/stable/GtkAlignment.html#gtk-alignment-new [assembled from several patches; replaced description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Use accessor functions for data fieldsSascha Silbe2011-11-229-48/+60
| | | | | | | | | | | | | | | | | | 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 <dsd@laptop.org>. Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Icon rendering fixes (FIXME: is this necessary?)Daniel Drake2011-11-221-3/+3
|
* Icon: port to new Height-for-width Geometry ManagementBenjamin Berg2011-11-221-18/+18
| | | | | | | | | | | | | GTK3 has replaced [1] the GTK2 geometry management with Height-for-width Geometry Management [2]. This means we need to replace size_request() methods with get_preferred_{width,height}(). [1] http://developer.gnome.org/gtk3/3.0/ch25s02.html#id1525688 [2] http://developer.gnome.org/gtk3/3.0/GtkWidget.html#geometry-management [assembled from several patches; fixed up left-over plus sign; added description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Adapt to Widget.get_child_requisition() API changesSascha Silbe2011-11-221-2/+2
| | | | | | | | | | | | 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 <benjamin@sipsolutions.net>. [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 <silbe@activitycentral.com>
* Adapt to Gtk.icon_size_lookup*() API changesSimon Schampijer2011-11-223-6/+6
| | | | | | | | | | | In PyGTK, icon_size_lookup*() returned just the icon size as a 2-tuple [1]. In GTK3+pygi, an additional boolean value indicating whether the passed-in value was valid is returned. [3,4] [1] http://developer.gnome.org/pygtk/stable/class-gtkiconsource.html#function-gtk--icon-size-lookup [2] http://developer.gnome.org/pygtk/stable/class-gtkiconsource.html#function-gtk--icon-size-lookup-for-settings [3] http://developer.gnome.org/gtk/stable/gtk-Themeable-Stock-Images.html#gtk-icon-size-lookup [4] http://developer.gnome.org/gtk/stable/gtk-Themeable-Stock-Images.html#gtk-icon-size-lookup-for-settings
* Adapt to changed Gtk.Window.set_geometry_hints() APISimon Schampijer2011-11-221-5/+13
| | | | | | | | | | | Unlike PyGTK [1], GTK3+pygi [2] wants GDK Geometry and WindowHints objects, rather than individual values. [1] http://developer.gnome.org/pygtk/stable/class-gtkwindow.html#method-gtkwindow--set-geometry-hints [2] http://developer.gnome.org/gtk3/3.0/GtkWindow.html#gtk-window-set-geometry-hints [replaced description, included fix-up commit] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Switch sugarext to be an introspectable librarySimon Schampijer2011-11-2212-512/+73
| | | | | | This makes sugarext accessible through introspection. It is used from the shell (key grabber, sound volume management) and the shell session management.
* Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi.Sascha Silbe2011-11-2247-819/+819
| | | | | | | | | | | | | | | | | 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>
* Import GDK in preparation for GTK3 conversionSascha Silbe2011-11-155-0/+5
| | | | | | | 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 <silbe@activitycentral.com>
* Remove Canvas* widgets and other hippo-canvas using partsSimon Schampijer2011-11-157-705/+3
| | | | | | | | | | hippo-canvas isn't available in the GTK3 world, so we need to remove anything that depends on it. Activities that still use it will need replace hippo-canvas based widgets with native GTK ones before they can be ported to GTK3. [replaced description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Notebook: fix passing can-close-tabsSimon Schampijer2011-11-151-2/+1
| | | | | | | | Make sure can_close_tabs can be passed in as a keyword parameter (to be set by the GObject constructor). [split out from another patch] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Pass all parameters to GtkTextBuffer.get_text()Simon Schampijer2011-11-151-2/+2
| | | | | | | | | | | With PyGTK the include_hidden_chars parameter to GtkTextBuffer.get_text() had a default value [1]. With GTK3+pygi the value must be explicitly passed [2]. [1] http://developer.gnome.org/pygtk/stable/class-gtktextbuffer.html#method-gtktextbuffer--get-text [2] http://developer.gnome.org/gtk3/3.0/GtkTextBuffer.html#gtk-text-buffer-get-text [changed description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Pass all parameters to ComboBox.set_row_separator_func()Simon Schampijer2011-11-151-2/+2
| | | | | | | | | | | With PyGTK, the func and data parameters to ComboBox.set_row_separator_func() had defaults [1]. With GTK3+pygi both values must be passed [2]. [1] http://developer.gnome.org/pygtk/stable/class-gtkcombobox.html#method-gtkcombobox--set-row-separator-func [2] http://developer.gnome.org/gtk/stable/GtkComboBox.html#gtk-combo-box-set-row-separator-func [replaced description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Pass all parameters to Box.pack_start() and ...pack_end()Daniel Drake2011-11-155-22/+20
| | | | | | | | | | | | | With PyGTK, several Box.pack_{start,end}() parameters had defaults [1,2]. With GTK3+pygi all values must be passed [3,4]. [1] http://developer.gnome.org/pygtk/stable/class-gtkbox.html#method-gtkbox--pack-start [2] http://developer.gnome.org/pygtk/stable/class-gtkbox.html#method-gtkbox--pack-end [3] http://developer.gnome.org/gtk/stable/GtkBox.html#gtk-box-pack-start [4] http://developer.gnome.org/gtk/stable/GtkBox.html#gtk-box-pack-end [assembled from several patches; replaced description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* activity.py: Apply sugar GTK3 theme and icon themeDaniel Drake2011-11-151-0/+2
| | | | | [squashed two patches into one] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Restructure for new /usr/bin/sugar-activity behaviourDaniel Drake2011-11-153-161/+21
| | | | | | | | This is needed to make /usr/bin/sugar-activity independent of sugar/sugar3 and gtk2/gtk3 i18n imports gconf static bindings, can't do it with GConf dynamic bindings loaded.
* Fix broken importsSimon Schampijer2011-11-157-13/+13
| | | | | | | | 8f1a821d683193a1849ec9658b0a52408dfae304 only changed imports starting with "import", but not those using "from ... import ...". [replaced description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Rename imports from sugar to sugar3Simon Schampijer2011-11-1446-146/+146
| | | | | Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Sascha Silbe <silbe@activitycentral.com>
* Rename the module to sugar3Simon Schampijer2011-11-14103-25/+25
| | | | | | | | The old gtk-2 based module will be present in the 0.94 branch in the sugar-toolkit. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Sascha Silbe <silbe@activitycentral.com>
*