| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
session.py talks to logind, so it needs to specifically check if logind is
running. /sys/fs/cgroup/systemd will be present also when systemd was built
without logind (--disable-logind).
For details, see:
<https://mail.gnome.org/archives/desktop-devel-list/2013-March/msg00092.html
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I came across this when the Palettes in the Journal where not able
to be displayed because the code to add the copy to documents option
was failing hard because get_documents_path returned None.
The root cause on my system is that I have wiped the Documents folder and
xdg-user-dir returns $HOME as a consequence which we ommit in
get_documents_path.
This patch does gracefully handle those cases in a few places, including
the Palettes. In the volumes toolbar we were already doing so.
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
|
|
| |
The icon in the transition box does not need to be a canvas icon
that reacts to input. It can be an icon only. That helps us to
not trigger any visual hover feedback for that icon.
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the control panel is opened for the first time, a table is
generated with a number of columns based on screen width. If the
screen is subsequently rotated, the column number is no longer
correct. In addition, the scrolled window holding the table needs to
be resized so that it fits on the screen.
This patch removes the section icons and sets it up again to
recompute the number of columns and to resize the window and
it's containing table.
Signed-off-by: Walter Bender <walter.bender@gmail.com>
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
| |
The Palettes did mix widgets and Menus, that is why we have to
use our custom Palettes to finish the port.
Signed-off-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds the tooltip 'Favorite entries' to the favorite filter
button in the Journal toolbar. The button is a ToggleToolButton and
with the recent change in the toolkit-gtk3 63b8e87b1a99a854e9adbb1579b1e05244d2dc4
we do hide the tooltip when the button is clicked or touched.
This adds a new string, therefore this patch is only applied to
master. The addition and string has been discussed with Gary
and Manuel.
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using the 'toggle_palette' property of the Palette invoker
we get the behaviour for hiding/showing the Palette when
clicking or touching the button. We need to set the
'hide_tooltip_on_click' property of the ToolButton to False
in that case. This is the same behaviour as the Frame icons,
see the WirelessDeviceView for a similar case of a ToolButton
with that behaviour.
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There are two set-transient-for for methods: one that expects the
window and parent parameter to be of type GtkWindow [1] and one that
expects them to be of type GdkWindow [2].
The parent window we get for the object chooser is of type GdkWindow
as we use GdkX11.X11Window.foreign_new_for_display to construct it
from the xid passed from the toolkit.
This patch changes the code to use gdk_window_set_transient_for in
this case.
[1] http://developer.gnome.org/gtk3/3.4/GtkWindow.html#gtk-window-set-transient-for
[2] http://developer.gnome.org/gdk3/stable/gdk3-Windows.html#gdk-window-set-transient-for
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
| |
When an Alert is shown in the RingLayout the position of the icons is
re-calculated to keep the same position than before.
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
Reviewed-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
| |
See 3b582af9 which is the commit that changed this to the rest of the
Gtk.Windows in the shell.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
|
| |
|
|
|
|
|
|
| |
To simplify main a bit more
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Metacity reads the default theme from gsettings and we were trying
to override it at lower level, causing race conditions. Now we are
just setting the cursor-theme gsetting, so that metacity setup the
Sugar theme for us.
Distributions which are shipping both GNOME and Sugar should make
sure to set XDG_CONFIG_HOME for either of the desktops to point
to a non default location, so that the settings are not conflicting.
It's necessary in this case if you don't want to get the Sugar
cursors in GNOME, but it seems like a sane approach in general. We
are sharing several components with GNOME which are (or might in
the future) use GNOME gsettings.
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
|
| |
So that the sugar script only setup environment variables
and all the rest is in main.py. This avoids the confusion about
putting stuff in the one or the other script. Ideally we would
get rid of the bash script completely, but it would not be
possible to source the debug and i18n files from python.
Acked-by: Simon Schampijer <simon@laptop.org>
|
| |
|
|
|
|
| |
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
| |
No need to echo display and no need to set it again before
starting the wm.
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
| |
So that we don't lose any traceback
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
| |
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
| |
Simplifies the messy main.
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
| |
They just makes the code more difficult to read.
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
| |
It improves readability a lot and I don't think it should
affect startup time. If there is something expensive at module
loading, it should be removed there.
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
| |
Scattered around code is hard to find and doesn't really
improve readability.
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
| |
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
| |
To simplify a bit main
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
| |
main.py is big and messy and the setup method is complex enough
to be worth it's own module.
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
| |
main.py is big and messy, moving stuff to the appropriate module
This commit depends on 2bbeba2446b7228e775d41db05cc0962235c70a5
in sugar-toolkit-gtk3.
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
| |
It's quite unexpected to find a large amount of code outside the
package. Also it's not really much of a "session", it starts a
couple of other processes maybe, but it mostly setups stuff and
initialize the UI.
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
| |
These are necessary for unit tests because we cannot assume
they are installed in the system. Also config.py is not
generated inside the jarabe package directory when building
out-of-source, so trying to import it fails
They might be used for customization too.
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
| |
Instead of hardcoding our prefix.
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
| |
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
| |
- Use entry-search instead of system-search in entries
- Keep using system-search in activity list view, but adjust the colors
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The ActivityPalette was ported to use the our custom Palettes, since
we can not mix our custom Palettes with the GTKMenu Based ones the
ActivityListPalette has to be ported as well.
Signed-off-by: Daniel Narvaez <dwnarvaez@gmail.com>
Acked-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
|
|
|
| |
This makes the "activate" accessible action work, which is useful
both for the UI tests (sugar-build) and accessibility.
It shouldn't interfer with the normal mouse behavior because gtk
only calls row_activated on a double click.
Signed-off-by: Daniel Narvaez <dwnarvaez@gmail.com>
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
| |
So it gets styled correctly.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
| |
Our GTKMenu based Palette does only support
GtkMenuItems as entries. We ca nnot switch to our
custom Palettes as those do not support sub menus.
As the progress bar is rarely used we decided to
remove it.
Signed-off-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gtk_clipboard_set_with_data expects us to pass a data argument [1]. As the
tempory file path we do copy to the clipboard is already part of the model
we can set this to None as we can access that in the get_func and
clear_func.
The targets have to be of type GtkTargetEntry.
[1] http://developer.gnome.org/gtk3/3.4/gtk3-Clipboards.html#gtk-clipboard-set-with-data
[2] http://developer.gnome.org/gtk3/3.4/gtk3-Selections.html#GtkTargetEntry
Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Daniel Drake <dsd@laptop.org>
|