Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Session: Properly check for logindMartin Pitt2013-03-221-1/+1
| | | | | | | | | | | 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>
* documents dir: handle cases where get_documents_path returns None, SL #4380Simon Schampijer2013-03-213-4/+7
| | | | | | | | | | | | | | | | 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>
* TransitionBox: replace the CanvasIcon with an Icon, part of SL #4221Simon Schampijer2013-03-141-3/+5
| | | | | | | | | 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>
* Control Panel: handle switching between landscape and portrait mode, SL #4444Walter Bender2013-02-271-7/+17
| | | | | | | | | | | | | | | | 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>
* Filetransfer: fix the incoming/outgoing transfer Palettes #4315Simon Schampijer2013-02-211-58/+100
| | | | | | | 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>
* Journal toolbar: add tooltip to favorite filterSimon Schampijer2013-02-191-0/+1
| | | | | | | | | | | | | | 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>
* Journal sorting button: hide/show on click or touchSimon Schampijer2013-02-151-5/+3
| | | | | | | | | | | | | 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>
* ObjectChooser: make ObjectChooser transient for the parent windowManuel Quiñones2013-02-141-1/+1
| | | | | | | | | | | | | | | | | | | 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>
* RingLayout: recalculate the position of the icons for an alert, SL #3925Manuel Kaufmann2013-02-121-1/+11
| | | | | | | | | 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>
* Remove resize grip from ViewSource and ObjectChooser - SL #4397 #4413Manuel Quiñones2013-02-062-0/+2
| | | | | | | 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>
* main.py: fix startup messageSimon Schampijer2013-01-221-1/+1
|
* Factor out intro window creationDaniel Narvaez2013-01-221-3/+6
| | | | | | To simplify main a bit more Acked-by: Simon Schampijer <simon@laptop.org>
* Rework how we select the Xcursor themeDaniel Narvaez2013-01-221-10/+4
| | | | | | | | | | | | | | | | | 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>
* Move metacity invocation into the python codeDaniel Narvaez2013-01-221-34/+69
| | | | | | | | | | 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>
* Move window manager handling up in the file, fix two underscroes for callbacksSimon Schampijer2013-01-221-14/+11
|
* Rename set to setup for consistencyDaniel Narvaez2013-01-221-4/+4
| | | | Acked-by: Simon Schampijer <simon@laptop.org>
* Cleanup a bit the xcursor hackDaniel Narvaez2013-01-221-7/+1
| | | | | | | No need to echo display and no need to set it again before starting the wm. Acked-by: Simon Schampijer <simon@laptop.org>
* Setup logging as soon as possibleDaniel Narvaez2013-01-221-11/+10
| | | | | | So that we don't lose any traceback Acked-by: Simon Schampijer <simon@laptop.org>
* Setup icon theme in set_themeDaniel Narvaez2013-01-221-3/+3
| | | | Acked-by: Simon Schampijer <simon@laptop.org>
* Factor out setup_locale functionDaniel Narvaez2013-01-221-10/+14
| | | | | | Simplifies the messy main. Acked-by: Simon Schampijer <simon@laptop.org>
* Unsplit a couple of very small methodsDaniel Narvaez2013-01-221-9/+4
| | | | | | They just makes the code more difficult to read. Acked-by: Simon Schampijer <simon@laptop.org>
* Move all the imports at the topDaniel Narvaez2013-01-221-27/+22
| | | | | | | | 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>
* Move the various init method calls inside mainDaniel Narvaez2013-01-221-6/+5
| | | | | | | Scattered around code is hard to find and doesn't really improve readability. Acked-by: Simon Schampijer <simon@laptop.org>
* Do not exceed 80 colsDaniel Narvaez2013-01-221-6/+8
| | | | Acked-by: Simon Schampijer <simon@laptop.org>
* Factor out cleanup_temporary filesDaniel Narvaez2013-01-221-1/+4
| | | | | | To simplify a bit main Acked-by: Simon Schampijer <simon@laptop.org>
* Split keyboard setup out of main.pyDaniel Narvaez2013-01-223-66/+88
| | | | | | | 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>
* Move logs cleanup to the loggerDaniel Narvaez2013-01-221-36/+4
| | | | | | | | | 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>
* Move the sugar-session code inside jarabeDaniel Narvaez2013-01-222-1/+353
| | | | | | | | | 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>
* Env variables for mime and activities defaultsDaniel Narvaez2013-01-221-3/+2
| | | | | | | | | | | 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>
* Find activities in the xdg system dirsDaniel Narvaez2013-01-222-3/+7
| | | | | | Instead of hardcoding our prefix. Acked-by: Simon Schampijer <simon@laptop.org>
* Remove unused config variablesDaniel Narvaez2013-01-221-2/+0
| | | | Acked-by: Simon Schampijer <simon@laptop.org>
* Adapt to changes in icons - SL #3569Manuel Quiñones2013-01-154-5/+5
| | | | | | | | - 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>
* Palettes: remove unused import MenuItemSimon Schampijer2013-01-141-1/+0
|
* Fix the activities list palette, SL #4284Daniel Narvaez2013-01-141-9/+9
| | | | | | | | | | 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>
* Start the activity when the treeview row is activatedDaniel Narvaez2013-01-141-0/+8
| | | | | | | | | | 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>
* Journal SortingButton: port palette to custom palette implementation - SL #4303Manuel Quiñones2013-01-071-2/+11
| | | | | | | So it gets styled correctly. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Clipboard Menu: remove progress bar, part of #4307Simon Schampijer2012-12-211-20/+0
| | | | | | | | | | | 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>
* Journal: fix copy to clipboard functionality, part of #4307Simon Schampijer2012-12-211-2/+2
| | | | | | | | | | | | | | | 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>
*