Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
path: root/widgets.py
Commit message (Collapse)AuthorAgeFilesLines
* Make the LinkInfo that is displayed at the bottom left themableSimon Schampijer2012-03-161-2/+2
| | | | | | | | | | | | | | | | Add a gtype_name to make it easily accessible from the theme. We have to do the same for the overlay as well in order to be able to set the 'background-color' of the label. Labels don't create their own window to render themselves into. Instead, they draw themselves directly onto their parents window, so we have to set the background-color of the parent in order to set the labels' background color [1]. The patch does adjust the gtype_names to be consistent. [1] http://developer.gnome.org/gtk-faq/stable/x810.html Signed-off-by: Simon Schampijer <simon@schampijer.de> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Use gtk-notebook-action-widget for the 'add-tab' buttonSimon Schampijer2012-01-051-28/+2
| | | | | | | | | | | | | | | | | | Due to API changes in the GTK Notebook [1] we can add now an action widget to it (e.g. a button to add a new tab). So far our 'add-new-tab'-button in Browse was another special tab. This does simplify the Browse code a lot by using the action widget instead. Yay! There will be a visual difference with this approach, the Button will always be at the far right, but this is acceptable - Safari uses the same style, with a button at the far right for adding a new tab (once a tab is open). [1] http://developer.gnome.org/gtk3/3.0/GtkNotebook.html#gtk-notebook-set-action-widget Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Fix bugs adding conditionals for BrowserNotebook with no pagesManuel Quiñones2011-12-051-2/+2
| | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Rename sugar to sugar3Manuel Quiñones2011-11-291-1/+1
| | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Port from PyGTK to PyGI, renamingManuel Quiñones2011-11-251-16/+16
| | | | | | | Was done running the pygi-convert.sh script. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Use the same styling as for the old style toolbars (Browse)Simon Schampijer2011-09-131-0/+2
| | | | | | | This patch depends on a follow up patch in sugar-artwork. Signed-off-by: Simon Schampijer <simon@laptop.org> Tested-by: Manuel Quiñones <manuq@laptop.org>
* Browse: tabs usability improvedManuel Quiñones2011-09-101-0/+93
The Add Tab button has been relocated next to the tab labels, allowing more space for the URL entry. Tabs are always shown. There is at least one tab. In that case, it cannot be closed. We prevent the closing by hiding the 'X' button. Also, the close image was sugarized. There is now a fixed width for tabs. The label text does ellipsize. The width depends on the amount of tabs. There is a maximum size that is used when there is extra space. There is a minimum size to prevent hiding the information. When a new tab is opened, it now shows an empty page, not the default page. In the future, we will add a hint in this empty page, similar to what we have for an empty Journal. Added the option to "follow link in new tab" in the link's palette. Added an icon for this item, and also the icon for "follow link" is also updated. When a new tab is opened via the '+' button, the focus goes to the URL entry in the toolbar. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>