Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Keydialog: various fixupsSimon Schampijer2012-09-131-7/+4
| | | | | | | | | | | | | - set_has_separator has been deprecated [1] - if we pass a model to the GtkCombobox we need to name the argument [2] - pack_start: the convert script got confused here [1] http://www.pygtk.org/docs/pygtk/class-gtkdialog.html#method-gtkdialog--set-has-separator [2] http://developer.gnome.org/gtk3/3.4/GtkComboBox.html#gtk-combo-box-new-with-model Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Port Sugar Palettes with mixed content to new APISimon Schampijer2012-09-131-12/+17
| | | | | | | | | | | | | As Palettes can either include a Gtk.Menu or a Gtk.Window we have to use a "false" menu when we want to have both functionality in a Palette. There is a new class PaletteMenuItem in the toolkit for that. Ported from the Frame: Journal Palette, Network Wireless Palette, Speaker Palette Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Increment the insert offset in the activity palette menu - SL #3879Manuel Quiñones2012-09-131-2/+3
| | | | | | | | This is to consider the added separator item below the palette header to get the styling OK. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Restore the border in the Journal text entries - SL #3892Manuel Quiñones2012-09-121-1/+1
| | | | | | | | | | Use scrolled_window.set_shadow_type which is the proper solution because the theme takes care of this, see ticket #3561 when we fixed this for Read dialog. The previous one using set_border_width is not working in the current theme. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Text entries in Journal Details: fix autoscroll to the text cursor - SL #3893Manuel Quiñones2012-09-121-1/+1
| | | | | | | | We should use ScrolledWindow.add instead of add_with_viewport to add the TextView, because the TextView has a viewport already. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Replace cairo.RectangleInt with Gdk.RectangleSimon Schampijer2012-09-124-15/+12
| | | | | | | | The Gdk.Rectangle is basically a cairo.RectangleInt but that way we do not need to import the dynamic cairo bindings explicitly. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* ActivityListPalette: fix displaying of PaletteSimon Schampijer2012-09-121-4/+2
| | | | | | | | | | | | | | | | - uncommented some code that was commented by mistake - listen to the destroy signal of the menu for doing the cleanup: the structure of Palettes has changed. The Palette is either a Gtk.Menu or a Gtk.Window which is encapsulated in the Palette class, in this case the Palette contains a Gtk.Menu and we can listen on it for the destroy signal. To display the Palette this patch depends on the CellrendererInvoker fixup patch for the toolkit. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* FrameContainer: set color in the theme, SL #3873Manuel Quiñones2012-09-111-5/+2
| | | | | | | | | | | Revert FrameContainer change to set the background color in 10d3971f7dc61d5acdf2c9211a9dd4092090d3b7. This is done in the theme, using the .background class for the sugar frame window. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* ObjectChooser: connect the clear-clicked signal, SL #3848Gonzalo Odiard2012-09-101-0/+4
| | | | | | | | When there is no match in the search result and you click on the "Clear Search" button this is handled now correctly. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Remove unneeded call in Journal toolbar, left from old toolbarManuel Quiñones2012-09-071-1/+0
| | | | | | | | Is giving AttributeError. Was left by accident in commit f1590970b884a4dab44bbdabc885f883bbc8bae0 . Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Use foreign_new_for_display API in GdkX11Simon Schampijer2012-09-073-3/+12
| | | | | | | | | | | gdk-window-foreign-new has been deprecated [1], so we have to use gdk-x11-window-foreign-new-for-display [2]. [1] http://developer.gnome.org/gdk/stable/gdk-X-Window-System-Interaction.html#gdk-window-foreign-new [2] http://developer.gnome.org/gdk/stable/gdk-X-Window-System-Interaction.html#gdk-x11-window-foreign-new-for-display Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* FavoritePalette: take into account that the first menu_item is the labelSimon Schampijer2012-09-071-1/+4
| | | | | | | | | | Since the Palettes with a menu are only Gtk.Menus the first item in the menu is the label that we mark insensitive (see get_menu in Palette). When we add the items we need to take the first already existing menu item into account. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Model Speech: use GStreamer 1.0 through introspectionDaniel Narvaez2012-09-071-10/+10
| | | | | Signed-off-by: Daniel Narvaez <dwnarvaez@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Journal detail view: draw the thumbnail without using a Gdk.PixmapSimon Schampijer2012-09-071-16/+26
| | | | | | | | Code based on the one in get_preview in toolkit-gtk3 and the one in Browse for the linkbutton. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Journal: workaround for foreachSimon Schampijer2012-09-071-3/+9
| | | | | | | | | | | | | Using gtk_container_foreach or gtk_container_forall [1] does expect the callback data to be passed in Python, it does work in a subclassed container due to Carlos fix in the GtkCallback annotations [2]. Apply workaround for the issue. [1] http://developer.gnome.org/gtk3/3.4/GtkContainer.html#gtk-container-foreach [2] http://git.gnome.org/browse/gtk+/commit/?id=db569cbee7e3842d802c5f1d53e28d0dde98ffeb Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Journal: initial portManuel Quiñones2012-09-0712-67/+85
| | | | | | | | | | | | | | | | | | | - pack_start: we have to pass all arguments now with the dynamic bindings - Gtk.widget_get_default_direction() -> Gtk.Widget.get_default_direction() - window.window -> window.get_window() - ListModel: on_* -> do_* and fix up the arguments and return values Gtk.TREE_MODEL_ITERS_PERSIST, Gtk.TREE_MODEL_LIST_ONLY -> Gtk.TreeModelFlags.ITERS_PERSIST, Gtk.TreeModelFlags.LIST_ONLY - replace Pango.PIXELS(width) and use Pango.Layout get_pixel_size - Gtk.TreeViewColumn: get_cell_renderers -> get_cells - Gio.volume_monitor_get() -> Gio.VolumeMonitor.get() - Volume BaseButton: fixup drag_dest_set - Gtk.Alignment: pass all required arguments - Gio.content_type_guess: pass all required arguments as named parameters - MimeRegistry: fix issue introduced by the automatic conversion Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Home View, listview: calling Gtk.TreeModelSort parent constructorManuel Quiñones2012-09-071-4/+4
| | | | | | | | | | See pygi ticket: https://bugzilla.gnome.org/show_bug.cgi?id=681477 Also added needed parameter for the model set_visible_func callback and removed the "return;" that pygi-convert.sh added to skip it. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Bring back the Control PanelManuel Quiñones2012-09-073-10/+10
| | | | | | | The keyboard and updater section still need to be ported. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Remove resize grip from HomeWindow, FrameWindow and LaunchWindowManuel Quiñones2012-09-073-0/+3
| | | | | | | | | | | Resize grip has been moved from GtkStatusbar to GtkWindow, see [1]. Without this fix we can see a little resize grip for example in the corner windows of the Frame. [1] http://developer.gnome.org/gtk3/3.1/ch25s02.html#id1478513 Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
*