| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Signed-off-by: Daniel Narvaez <dwnarvaez@gmail.com>
Acked-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|