aboutsummaryrefslogtreecommitdiffstats
path: root/embed
Commit message (Collapse)AuthorAgeFilesLines
...
* ephy-embed: cancel the pending history queries during finalizeClaudio Saavedra2012-03-131-1/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=671901
* ephy-history-service: make the async API cancellableClaudio Saavedra2012-03-132-3/+3
| | | | | | | | | | | The main purpose of the cancellable API in ephy-history-service is to let the user notify when the results of the operation are no longer needed and the callback call can be omitted. Since performing a read operation, in such cases, makes no sense, we cancel them altogether. However, given the nature of the service, we don't cancel write operations. https://bugzilla.gnome.org/show_bug.cgi?id=671901
* ephy-web-view: share non-search-regex for testingDiego Escalante Urrelo2012-03-113-9/+47
| | | | | | Add ephy-embed-private.h https://bugzilla.gnome.org/show_bug.cgi?id=669548
* ephy-embed: do not add the homepage (about:blank) to the historyXan Lopez2012-03-081-0/+3
| | | | | Don't do it when it's loaded automatically through NewTab or NewWindow, but do it if the user actually types the URI.
* ephy-web-view: remember when we are loading the homepageXan Lopez2012-03-082-11/+37
| | | | And add a getter for the information.
* ephy-web-view: protect against pages with NULL URIXan Lopez2012-03-071-4/+6
| | | | | | | Some pages (like those opened with javascript:...) can have a NULL URI according to WebKit, so protect against that. https://bugzilla.gnome.org/show_bug.cgi?id=671555
* Move the host and urls views from embed to lib/widgetsXan Lopez2012-03-079-804/+1
| | | | | Since that's their natural place. Also create a base class to hold the common code they share.
* ephy-history-view: ellypsize the title and url columnsClaudio Saavedra2012-03-071-2/+6
|
* history-window: Add a view for the hostsClaudio Saavedra2012-03-075-0/+396
|
* Add a new view for the pages historyClaudio Saavedra2012-03-075-0/+403
| | | | | The current view is based in EphyNode, so it's not useful. GtkTreeView and GtkListStore subclasses are added for this purpose.
* ephy-embed: do not retrieve the legacy history instanceXan Lopez2012-03-071-3/+0
| | | | We are not using it anymore.
* ephy-history-service: add a "cleared" signal for the clear methodXan Lopez2012-03-071-3/+3
| | | | And use it in EphyEmbed instead of the legacy signal.
* Rename ephy_history_service_add_page to ephy_history_service_visit_urlXan Lopez2012-03-071-1/+1
| | | | Fits much better with the naming model in that class.
* Get rid of EphyBrowseHistoryXan Lopez2012-03-077-295/+40
| | | | | | It was a very thin wrapper on top of the history service, it does not seem to make much sense. For now move the two useful helper methods down to the service without further changes.
* ephy-web-view: also fallback to URI as title hereXan Lopez2012-03-071-3/+9
|
* ephy-browse-history: small cleanupXan Lopez2012-03-071-1/+1
|
* ephy-browse-history: style cleanupsXan Lopez2012-03-072-115/+45
|
* Remove the set_url_property history methodXan Lopez2012-03-071-6/+4
| | | | It's not really that useful.
* Store zoom levels per host, not per URLXan Lopez2012-03-073-17/+32
| | | | | | | | | | Zoom levels have always been stored per host in Epiphany, not per URL (otherwise you'd have to re-apply the zoom level again and again when visiting, say, every news entry in your favorite newspaper). Change things to work like that. Note: this changes the SQL table format for the history, so you'll need to re-migrate your history.
* Hook the new history to the URL entryXan Lopez2012-03-072-0/+6
| | | | | We now fetch the history from the SQL backend using a service thread, and merge the results with our old bookmark data.
* Use EphyBrowseHistory to store page titlesClaudio Saavedra2012-03-071-4/+3
|
* Use EphyBrowseHistory to set/get the zoom level for pagesClaudio Saavedra2012-03-071-39/+39
|
* Use the new EphyBrowseHistory to add a URI to the historyClaudio Saavedra2012-03-071-6/+1
|
* Add a EphyBrowseHistory instance to EphyEmbedClaudio Saavedra2012-03-071-0/+3
|
* Add a EphyBrowseHistory instance to EphyEmbedShellClaudio Saavedra2012-03-072-0/+29
|
* Add initial implementation of the browse history frontendClaudio Saavedra2012-03-073-0/+321
| | | | This will eventually replace the old EphyHistory class
* We need to be a bit smarter about this, and only dismiss it forXan Lopez2012-02-241-1/+1
| | | | | | | | user-initiated navigations. Revert for now. Revert "ephy-web-view: dismiss the "Remember password?" infobar on navigation" This reverts commit 2434fbfa4df95702de8e19e2484b23937113a8cd.
* ephy-web-view: fix loading of <domain>:<port> URIsXan Lopez2012-02-231-1/+76
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=670674
* ephy-embed-utils: fix loading of <IP address>:<port> URIsXan Lopez2012-02-231-7/+9
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=669461
* ephy-web-view: don't assume a embed-container in close-web-viewDiego Escalante Urrelo2012-02-221-9/+5
| | | | | | | | | The EphyWebView is not necessarily embedded in an EphyEmbedContainer. Simplify close_web_view_cb and make it smarter. It now handles EphyEmbedContainer and random toplevel widgets. https://bugzilla.gnome.org/show_bug.cgi?id=669737
* ephy-web-view: remove close-requested signalDiego Escalante Urrelo2012-02-222-17/+0
| | | | | | | | | WebKitWebView has a ::close-web-view signal for the same thing. The only user of this was ephy-window, for exactly the same thing that we are already doing in ephy-web-view, when handling ::close-web-view. https://bugzilla.gnome.org/show_bug.cgi?id=669737
* ephy-web-app-utils: be more careful listing applicationsDiego Escalante Urrelo2012-02-221-16/+17
| | | | | | Check if the .desktop file exists to prevent false positives. https://bugzilla.gnome.org/show_bug.cgi?id=669836
* Initialize variables that could be freed without being setGustavo Noronha Silva2012-02-201-2/+2
|
* Make inspector handling real-world compliantGustavo Noronha Silva2012-02-201-10/+30
| | | | | | | Destroy and recreate the inspector's WebView instead of reusing it, and make it always start windowed. https://bugzilla.gnome.org/show_bug.cgi?id=669835
* ephy-web-view: blank line nitpickDiego Escalante Urrelo2012-02-111-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=669737
* ephy-web-app-utils: add EPHY_WEB_APP_ICON defineDiego Escalante Urrelo2012-02-092-2/+3
| | | | | | | Stands for "app-icon.png", which is of interest outside ephy-web-app-utils.c https://bugzilla.gnome.org/show_bug.cgi?id=669182
* Convert app names to the proper encoding before using them as filenamesClaudio Saavedra2012-02-081-12/+53
| | | | | | Also add proper conversion error handling where needed. https://bugzilla.gnome.org/show_bug.cgi?id=658028
* Allow toggling WebGL as a runtime GSettings switchMartin Robinson2012-02-031-0/+4
| | | | | | If WebGL is enabled in WebKitGTK+, this new GSettings switch disables and enables WebGL settings at runtime. WebGL is disabled by default currently because Epiphany may use Clutter in the future.
* Get rid of EPHY_STOCK_EPHYXan Lopez2012-01-271-1/+0
| | | | | | In 99% of the cases we were using it for gtk_window_set_icon_name, which does nothing in GNOME 3. In the couple of valid use cases, just use "web-browser" directly.
* ephy-embed-utils: load again stuff like 'localhost:3000"Xan Lopez2012-01-251-5/+16
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=668593
* Never append "http://" to an address with a schemeXan Lopez2012-01-242-3/+6
| | | | | It does not make sense. Fixes opening about: pages after normalizing all URLs again (and not only those without a scheme!).
* ephy-embed-utils: consider 'ephy-about' as a web schemeXan Lopez2012-01-241-0/+1
| | | | | Otherwise we'll fail to open about: pages in our policy decision mechanism.
* ephy-web-view: remove unused variableXan Lopez2012-01-241-6/+0
|
* ephy-web-view: dismiss the "Remember password?" infobar on navigationXan Lopez2012-01-241-1/+1
| | | | | Does not make much sense to keep it when the context for the action is gone.
* ephy-window: sync page actions with is-blank propertyDiego Escalante Urrelo2012-01-241-3/+42
| | | | | | | | Add ::is-blank property to EphyWebView and update EphyWindow to sync some of the page menu actions with it. There's no point in enabling save/reload/bookmark/etc on about:blank. https://bugzilla.gnome.org/show_bug.cgi?id=668105
* ephy-web-view: remove uneeded is_blank callsDiego Escalante Urrelo2012-01-241-4/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=668105
* ephy-web-view: only autosearch input without schemeDiego Escalante Urrelo2012-01-241-11/+18
| | | | | | | Create an autosearch from the user input only when it has no scheme at all. https://bugzilla.gnome.org/show_bug.cgi?id=551857
* ephy-embed-utils: mailto is not a web schemeDiego Escalante Urrelo2012-01-241-2/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=551857
* ephy-embed: reorder includesXan Lopez2012-01-231-3/+2
|
* ephy-embed: move the other statusbar id to the .c fileXan Lopez2012-01-232-2/+2
| | | | It's not used anywhere else.
* ephy-embed: remove unused defineXan Lopez2012-01-221-1/+0
|
* ephy-embed: the method to set the statusbar label can be private tooXan Lopez2012-01-222-17/+15
|
* ephy-embed: we can now make the statusbar methods privateXan Lopez2012-01-222-122/+116
|
* ephy-embed: stop listening to progress updates after disposeXan Lopez2012-01-201-6/+14
| | | | | | | | | | | | | | | | | | Similar to status message updates, otherwise we might end up updating dead widgets. This fixes: #0 0x00007ffff592b9c8 in g_logv (log_domain=0x7ffff66de0cf "Gtk", log_level=G_LOG_LEVEL_CRITICAL, format=0x7ffff59ade60 "%s: assertion `%s' failed", args1=0x7fffffffd588) at gmessages.c:758 #1 0x00007ffff592babc in g_log (log_domain=0x7ffff66de0cf "Gtk", log_level=G_LOG_LEVEL_CRITICAL, format=0x7ffff59ade60 "%s: assertion `%s' failed") at gmessages.c:792 #2 0x00007ffff592bafd in g_return_if_fail_warning (log_domain=0x7ffff66de0cf "Gtk", pretty_function=0x7ffff66e27f0 "gtk_widget_hide", expression=0x7ffff66df7e8 "GTK_IS_WIDGET (widget)") at gmessages.c:801 #3 0x00007ffff657c430 in gtk_widget_hide (widget=0x15ca190) at gtkwidget.c:3992 #4 0x00000000004703f6 in clear_progress_cb (embed=0x516450) at ../../embed/ephy-embed.c:525 #5 0x00007ffff5923c2c in g_timeout_dispatch (source=0x1bb9400, callback=0x4703d6 <clear_progress_cb>, user_data=0x516450) at gmain.c:3857 #6 0x00007ffff5921e83 in g_main_dispatch (context=0x524f70) at gmain.c:2513 #7 0x00007ffff5922b44 in g_main_context_dispatch (context=0x524f70) at gmain.c:3050 #8 0x00007ffff5922d27 in g_main_context_iterate (context=0x524f70, block=1, dispatch=1, self=0x629c90) at gmain.c:3121 #9 0x00007ffff5922deb in g_main_context_iteration (context=0x524f70, may_block=1) at gmain.c:3182 #10 0x00007ffff5b2705e in g_application_run (application=0x508000, argc=1, argv=0x7fffffffda78) at gapplication.c:1496 #11 0x000000000042d6e2 in main (argc=1, argv=0x7fffffffda78) at ../../src/ephy-main.c:472
* ephy-embed-shell: add missing annotationXan Lopez2012-01-201-1/+1
|
* ephy-embed: if there's a priv variable set, use itXan Lopez2012-01-191-39/+40
|
* ephy-embed: do not listen to status updates after disposeXan Lopez2012-01-191-1/+13
| | | | | | Otherwise we might crash updating a dead statusbar widget. https://bugzilla.gnome.org/show_bug.cgi?id=668171
* Remove Print Setup item from the super menu and embed it into print dialogCarlos Garcia Campos2012-01-181-3/+6
|
* Remove Print Preview item from the super menuXan Lopez2012-01-182-16/+0
| | | | | It's already accessible from the Print dialog itself, so there's really no need to duplicate it.
* ephy-web-view: remove unused methodXan Lopez2012-01-172-67/+0
|
* embed: add enter/leave events to the GtkOverlayCosimo Cecchi2012-01-171-0/+3
| | | | | So the floating bar can listen to enter-notify-event and move accordingly.
* embed: set the floating bar as no_show_allCosimo Cecchi2012-01-171-0/+1
| | | | | Since we want to show it on demand and we call show_all on the parent GtkPaned.
* Move the nautilus floating bar to lib/widgetsXan Lopez2012-01-171-3/+1
| | | | And fix a couple of warnings.
* floating-bar: import NautilisFloatingBar into EpiphanyCosimo Cecchi2012-01-171-37/+10
| | | | Yay for sharing code. It also helps theming.
* Add mnemonics for password/recovery infobarsJiro Matsuzawa2012-01-061-2/+2
| | | | | | | | | 'Store password' and 'Session recovery' infobars had no mnemonics in their buttons. Bug #667238 Signed-off-by: Diego Escalante Urrelo <descalante@igalia.com>
* ephy-embed-prefs: Hardcode enable-fullscreen to TRUEPhilippe Normand2012-01-041-0/+1
| | | | | | | | | This change is required for websites (like Youtube) using the new Javascript-based fullscreen API. Also bumped the WebKitGTK requirement to 1.7.3 in agreement with Xan. This release includes bug fixes related to fullscreen display of videos. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=665341
* e-download: add ephy_download_get_content_typeDiego Escalante Urrelo2011-12-212-3/+49
| | | | | | | | | | This new API gets the content-type of a download using GIO, or Soup if GIO is still not available for the download. GIO is our first option since its local guesses are more reliable. Soup can be cheated by servers or confused by still too incomplete downloads. Bug #662059
* ephy-embed-prefs: reorder includesXan Lopez2011-12-201-4/+4
|
* EphyEmbed: do not show the progressbar for about:blankClaudio Saavedra2011-12-161-0/+5
| | | | | Now that we've placed a timeout, about:blank shows an annoying complete progressbar shortly. We don't need it.
* EphyEmbed: Hide the statusbar in a timeout handlerClaudio Saavedra2011-12-161-1/+22
| | | | To allow it being displayed for a short while once it's complete.
* EphyEmbed: reset the alignment of the statusbar when hiddenClaudio Saavedra2011-12-161-2/+3
| | | | | | So that it shows to the left by default. The double get_parent() is ugly and we should probably hide the implementation details of the statusbar in a separate class.
* ephy-web-view: plug leakXan Lopez2011-12-151-3/+3
| | | | | | | | | | | | ==16675== 83 (64 direct, 19 indirect) bytes in 1 blocks are definitely lost in loss record 10,060 of 13,509 ==16675== at 0x4A074CD: malloc (vg_replace_malloc.c:236) ==16675== by 0x70C6F17: standard_malloc (gmem.c:85) ==16675== by 0x70C6FA0: g_malloc (gmem.c:159) ==16675== by 0x70DE86C: g_slice_alloc (gslice.c:1003) ==16675== by 0x70DE8AB: g_slice_alloc0 (gslice.c:1029) ==16675== by 0x6E2873D: soup_uri_new_with_base (soup-uri.c:177) ==16675== by 0x6E29468: soup_uri_new (soup-uri.c:398) ==16675== by 0x47D70F: load_status_cb (ephy-web-view.c:1906)
* Some indentation fixes.Claudio Saavedra2011-12-141-6/+4
| | | | Sorry 'bout that.
* Use an overlay progress bar for the loading progress.Claudio Saavedra2011-12-141-1/+32
| | | | | | The theming was done by Lapo Calamandrei. https://bugzilla.gnome.org/show_bug.cgi?id=665470
* Use a GtkOverlay for the statusbar instead of shipping GeditOverlayClaudio Saavedra2011-12-141-10/+27
| | | | | | | Instead of escaping the cursor, we align the overlay at the opposite side of the window. This is consistent with nautilus. https://bugzilla.gnome.org/show_bug.cgi?id=653996
* ephy-embed: small cleanupsXan Lopez2011-12-111-5/+3
|
* Remove last traces of dummy certificate managerXan Lopez2011-12-051-49/+0
| | | | | | There was no implementation, so it was just polluting the codebase. In the future we probably want a non-optional implementation in the "Page details" section, using the soup/glib-network APIs.
* Remove homepage preference from GSettingsXan Lopez2011-12-042-18/+5
| | | | | | | | Hardcode it to be "about:blank". The final step could be completely remove the rest of the code, but it might be useful for the future Overview page (if we consider it the new "homepage"). https://bugzilla.gnome.org/show_bug.cgi?id=665469
* Redesign of about:pagesTom Tryfonidis2011-12-011-1/+2
| | | | | | | The patch changes the design of about:plugins/memory pages making them similar to about:applications. https://bugzilla.gnome.org/show_bug.cgi?id=665136
* web view: fix icon namesSaleem Abdulrasool2011-12-011-4/+4
| | | | | | | | | | | | | The GTK+ 3.0 themes have a different name for the dialog icons (dialog-{information,error}) rather than the stock GTK+ icon names (gtk-dialog-{info,error}). Use the proper names. Additionally, ensure that icon_info is not NULL when performing the lookup, which will fail. This part of the change is to avoid a possible crash/segfault caused by the lookup without a valid icon_info. Bug: 665170 Signed-Off-By: Saleem Abdulrasool <compnerd@compnerd.org>
* ephy-request-about: fix a potential crasher if the css file is missingClaudio Saavedra2011-12-011-1/+4
| | | | And prevent the corresponding GError from leaking.
* webapps: ensure the webapps are shown in the shellClaudio Saavedra2011-12-011-6/+14
| | | | | | | Make sure the applications directory in XDG_DATA_HOME exists before creating a symlink for the application desktop file. https://bugzilla.gnome.org/show_bug.cgi?id=664751
* ephy-embed: disconnect statusbar timeout on disposeXan Lopez2011-11-301-7/+12
| | | | Otherwise we'll crash when we close windows/tabs too fast.
* Use SoupSession:ssl-use-system-ca-file propertyDan Winship2011-11-302-16/+4
| | | | | | | | Rather than copying glib-networking's logic for finding the system trusted CA file and then telling libsoup to use it, just use the new ssl-use-system-ca-file property. https://bugzilla.gnome.org/show_bug.cgi?id=633109
* Delay hiding the statusbar overlay when the status text changes.Martin Robinson2011-11-301-2/+23
| | | | | Delaying the statusbar hide prevents the overlay from flickering when moving the cursor over a series of links.
* fix string formatFunda Wang2011-09-281-1/+1
|
* Add translation context for a stringClaudio Saavedra2011-09-161-1/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=658900
* Fix documentation commentClaudio Saavedra2011-09-121-1/+1
|
* web apps: Remove G_DIRECTORY_SEPARATOR chars from filenamesClaudio Saavedra2011-09-121-0/+1
| | | | | | To avoid nasty surprises https://bugzilla.gnome.org/show_bug.cgi?id=658028
* Normalize the web app profile directory and desktop file namesClaudio Saavedra2011-09-121-8/+38
| | | | | | | | This is necessary to allow the shell to guess properly the location of the desktop file out of the WM_CLASS property in the application window. Also, append a sha1 checksum to the filenames to avoid collisions. https://bugzilla.gnome.org/show_bug.cgi?id=658010
* ephy-web-view: SoupURI construction can fail for invalid URIsXan Lopez2011-09-121-2/+4
| | | | Guard against that.
* ephy-web-view: remove unused and unimplemented methodXan Lopez2011-09-112-18/+0
|
* ephy-web-view: sort includesXan Lopez2011-09-111-14/+14
|
* ephy-web-view: use SoupURI for about: checkXan Lopez2011-09-111-4/+9
| | | | | Turns out the stuff after about: in a SoupURI will be the path, not the host. Guess it makes sense.
* Remove obsolete commentClaudio Saavedra2011-09-091-2/+1
|
* ephy-web-view: remove now unused parameter to sprintfXan Lopez2011-09-081-1/+1
| | | | Noticed by Luc Pionchon.
* ephy-web-view: do not mention the URL twice in error pagesXan Lopez2011-09-071-1/+1
| | | | Sounds repetitive.
* Revert "ephy-web-view: fix title for error pages"Xan Lopez2011-09-071-1/+1
| | | | | | This reverts commit b01497d86f8ed6d1f3ddbfc66d2c5c1354c9afb3. Xan, see me after class.
* Make about:applications prettierXan Lopez2011-09-073-8/+57
| | | | Thanks to Lapo Calamandrei for the CSS.
* ephy-web-view: fix title for error pagesXan Lopez2011-09-061-1/+1
| | | | Diego, talk to me after class.
* ephy-web-view: fix multiple deletes in about:applicationsXan Lopez2011-09-061-1/+3
| | | | | The URI changes to about:applications? after the first one, need to take that into account.
* Implement about:applicationsXan Lopez2011-09-064-4/+147
| | | | | | A really simple way to list and delete the existing Web Applications. Hopefully this will go completely away in 3.4 replaced with something in the shell itself.
* ephy-request-about: move this to embed/Xan Lopez2011-09-063-0/+238
| | | | We'll need to access embed/ data for about:applications.
* e-web-view: fix error pages for RTL localesVinicius Depizzol2011-09-051-2/+3
| | | | | | | | Remove hardcoded directions in the CSS definitions and make them simpler. Bug #314205 Signed-off-by: Diego Escalante Urrelo <descalante@igalia.com>
* e-web-view: use proper html for paragraphsDiego Escalante Urrelo2011-09-051-10/+11
| | | | Bug #314205
* e-web-view: better messages in error pagesDiego Escalante Urrelo2011-09-051-4/+15
| | | | | | Use better words to describe the situation, avoid techie terms. Bug #637903
* e-file-helpers: implement and use ephy_file_delete_dir_recursivelyDiego Escalante Urrelo2011-09-051-52/+1
| | | | | | | | | | Move the implementation from ephy-web-app-utils.c to ephy-file-helpers.c. The current one was not doing recursive delete, this caused the bug of private instances leaving their profile directories behind in /tmp. Bug #658201
* ephy-web-app-utils: fix include sortXan Lopez2011-09-041-0/+1
|
* ephy-web-app-utils: adjust includes to styleguideXan Lopez2011-09-041-2/+0
|
* ephy-web-app-utils: move the web app creation code hereXan Lopez2011-09-043-164/+183
|
* ephy-web-view: silence compiler warningXan Lopez2011-09-031-0/+1
|
* ephy-web-app-utils: rename ephy_delete_web_application to ↵Xan Lopez2011-09-032-3/+3
| | | | | | ephy_web_application_delete You know, use namespaces correctly and all that.
* Add ephy_web_application_get_profile_directory()Claudio Saavedra2011-09-023-9/+26
| | | | And factor out some code
* Move EPHY_WEB_APP_PREFIX declaration to a cleaner locationClaudio Saavedra2011-09-022-2/+2
|
* Add --delete--application command line option to delete WebAppsXan Lopez2011-09-023-1/+175
| | | | | | Plus the necessary code to implement some sort of UI to do this for the 3.2 time frame. Hopefully for 3.4 we'll have a GNOME-wide system to deal with applications.
* ephy-web-view: do not launch ephy with jhbuildXan Lopez2011-08-291-1/+1
| | | | Leftovers from testing.
* Add basic support for Web ApplicationsXan Lopez2011-08-292-0/+211
| | | | | | | | Allow to save any page as a "Web Application". A new .desktop file will be created, and added to the Shell as a new application. It will launch epiphany in application mode, with its own private profile (inheriting some data from the main profile, like the relevant domain cookies) and in a new process.
* e-web-view: use hostname in geolocation infobarDiego Escalante Urrelo2011-08-131-1/+4
| | | | | | | Instead of the full URI, make it more readable and use only the hostname. Bug #649164
* Use line-wrap in GtkInfoBar labelsDiego Escalante Urrelo2011-08-131-1/+2
| | | | | | | Otherwise we can end up with fixed width windows that exceed the display size when long sentences are displayed. Bug #649164
* Use g_markup_printf_escaped when printing urisDiego Escalante Urrelo2011-08-131-5/+5
| | | | | | | This covers GtkInfoBar in ephy-web-view.c, ephy-download-widget.c and also tooltips and labels in ephy-download-widget.c Bug #649164
* e-web-view: use ephy_string_get_host_nameDiego Escalante Urrelo2011-08-111-4/+4
| | | | Bug #655899
* e-window: use a css file for widget stylingAlexandre Mazari2011-07-301-15/+0
| | | | | | | | | | | | Replace local styling (used for the tab close button and embed's status frame) by a global css sheet loaded at window construction. This allows tweaking style properties without rebuilding. The css file is installed in $(pkgdatadir)/epiphany.css. Signed-off-by: Diego Escalante Urrelo <descalante@igalia.com> Bug #644805
* e-embed: remove useless e-file-chooser includeDiego Escalante Urrelo2011-07-301-1/+0
|
* Add an --application-mode flag and global modeXan Lopez2011-06-301-1/+2
| | | | | | | | | For now it's pretty much like a private instance, but: - A profile directory *must* be passed - Global passwords and cookies are accessed. In the future we'll likely restrict cookies to the ones for the web application domain, which we'll copy from the main cookies file.
* Use an enum for the global mode of the applicationXan Lopez2011-06-304-22/+30
| | | | In preparation to add a new mode for WebApps.
* Use GtkApplication's window tracking for EphyWindow tooXan Lopez2011-06-302-44/+0
| | | | | | | | Instead of our own home-grown system. I think we should subclass window_added in GtkApplication and do there the session & state stuff and get rid of ephy_session_add_window and ephy_state_add_window.
* Always use the EphyEmbedShell to know if we are a private instanceXan Lopez2011-06-302-2/+2
| | | | We can now get rid of the EphyFileHelpers method.
* Merge EphyApplication into Ephy(Embed)ShellXan Lopez2011-06-302-3/+83
| | | | | | | | | | | We want to use EphyApplication from embed/ too, so instead of following the EphyEmbedShell/EphyShell pattern just fold the code into the Shell itself. This makes sense since both classes have basically the same function, and we can easily leave the non-embed code in EphyShell and move to EphyEmbedShell the bits we want to be global. The better name would be EphyCoreApplication/EphyApplication for the resulting object, but we can do this later.
* ephy-embed-single: remove add-search-engine signalXan Lopez2011-06-282-27/+0
| | | | | It's not used anymore. If we ever reimplement this we can add it again.
* ephy-embed-prefs: stop trying to use the GNOME font settingsXan Lopez2011-06-181-37/+7
| | | | | | | | | | | | | | They are particularly ill-suited for us in GNOME 3: - font-name is Cantarell, which is not good as the sans-serif font in the web. - document-font-name, which we hoped would be a serif font, is "Sans 11". So just give up and set "sans" "serif" and use whatever the system is set up to do for that. In Fedora we will get DejaVu, which is not particularly great, so ideally we should add code to get better defaults.
* ephy-embed-prefs: plug a couple of leaksXan Lopez2011-06-161-1/+4
|
* Use the generic marshaler throughoutXan Lopez2011-06-146-19/+13
| | | | Just enough to get rid of ephy-marshal.h
* ephy-web-view: do not warn of modified forms for short text in input elementsXan Lopez2011-06-101-2/+23
| | | | | It's not likely the user is interested in saving this, and it's pretty common (eg, google.com).
* ephy-embed-utils: make URI normalization for about: genericXan Lopez2011-06-101-3/+3
|
* Use GtkOrientable interface instead of deprecated V/H widgetsClaudio Saavedra2011-06-093-7/+10
| | | | | | | | | | Gtk[HV]Box, Gtk[HV]Separator, Gtk[HV]Paned are deprecated in GTK+ 3.2, so let's use the GtkOrientable interface instead. GtkBox is likely to dissapear soon too, so a migration to GtkGrid might be necessary at some point. https://bugzilla.gnome.org/show_bug.cgi?id=652201
* use gtk_box_pack_start() with EphyEmbedClaudio Saavedra2011-06-091-1/+1
| | | | | | | Using gtk_container_add() is a bad idea because default fill/expand values can change, and they happened to do in GTK+ 3.1. https://bugzilla.gnome.org/show_bug.cgi?id=652201
* ephy-embed-single: set_network_status needs to notifyDiego Escalante Urrelo2011-06-051-0/+2
| | | | | | Otherwise ephy-window never finds out that the network-status has changed. Bug #624421
* Added about:plugins support.Sergio Villar Senin2011-06-014-5/+43
| | | | | | We are now able to show a page with the list of installed plugins. Bug #575498
* ephy-web-view: warn about unsubmitted forms on closeXan Lopez2011-06-011-0/+33
| | | | | | | Reimplement this again, hopefully a lot more accurately now with WebKit :) Bug #604986
* Add optional spell checking, enabled by defaultXan Lopez2011-05-231-0/+26
| | | | | | | Depends on WebKitGTK+ being built with spell check support, otherwise it won't do anything. Based on a patch by Diego Escalante.
* Slide out the status overlay when the mouse pointer goes close by.Alexandre Mazari2011-04-261-1/+6
| | | | | | | | | This introduces a GeditOverlayChild subclass, listening to parent overlay mouse events to define the escaping policy. The distance from which the widget "escapes" the mouse pointer can be set at construction time. https://bugzilla.gnome.org/show_bug.cgi?id=643909
* ephy-embed-prefs: plug a couple of leaksXan Lopez2011-04-241-1/+4
|
* Remove a few GCC 4.6.0 warningsXan Lopez2011-04-212-4/+0
|
* Better behaviour when openning new windows that are resized as tabsGustavo Noronha Silva2011-04-182-1/+39
| | | | | | | | | | When a new window is opened and given a specific size and position by javascript, the request should only be respected if the new window is being opened stand alone, and considered a popup. This fixes bad behaviour observed when the new window became a tab on an existing window and messed with its size. Bug #612155
* Move overlay statusbar to EphyEmbedXan Lopez2011-04-164-202/+187
| | | | | It's where it belongs, and it will make things easier for the following patches in this area.
* Rely on WebKit doing the check for mixed symbolsGustavo Noronha Silva2011-04-151-14/+0
| | | | | | | WebKit 1.4.0 checks if symbols are being mixed before loading a plugin. That is more robust, so we should rely on it. Bug #647096
* ephy-embed-prefs: auto-shrink images by defaultXan Lopez2011-04-121-1/+0
| | | | | This still has some issues, but until we figure them out I guess it's much better to turn the preference on than off.
* ephy-web-view: use new API for DOM eventsXan Lopez2011-03-191-2/+3
| | | | This requires WebKitGTK+ r81486, soon to be 1.3.13.
* Select the serif font as the default web font.Martin Robinson2011-03-121-4/+4
| | | | | | | To match the behavior of other browsers, the default web content font is the serif font, instead of the sans-serif font. Bug #644523.
* Improve the selection of the system serif font.Martin Robinson2011-03-121-5/+4
| | | | | | | | Instead of using the Gnome interface font as the default serif font, use the Gnome document font. The document font has an increased chance of being a serif font over the interface font. Bug #644521
* ephy-download: add the new EphyDownload objectDiego Escalante Urrelo2011-03-0810-2672/+1199
| | | | | | | | | | | | | | | | | EphyDownload is a wrapper object around WebKitDownload that handles common behavior in downloads: auto-destination, default action for the MIME type. It can be used to wrap a WebKitDownload coming from a WebKitView or to download a url: ephy_download_new_for_uri and ephy_download_new_for_download are provided. Its lifetime is not automagic like EphyEmbedPersist, so you have to unref it when you no longer need it. This new object replaces EphyEmbedPersist and enables us to use a single codepath for downloads in all Epiphany. Bug #618443
* ephy-embed: add a border and a little padding to the status frameXan Lopez2011-03-051-0/+18
| | | | Otherwise it blends a bit too effectively into clear backgrounds.
* ephy-embed: hide toplevel child widgetXan Lopez2011-02-211-2/+8
| | | | | | Since that's what we add to the overlay, its visible property will be in sync with the child container. Gets rid of bothering 1px visible leftover when statusbar is hidden.
* ephy-web-view: do not update statusbar text for webviews without embed objectSergio Villar Senin2011-02-161-1/+3
| | | | | | Fixes a crash when trying to open the WebInspector https://bugzilla.gnome.org/show_bug.cgi?id=642306
* Sync with latest GeditOverlay codeXan Lopez2011-02-161-3/+3
| | | | And adapt to the new API.
* ephy-web-view: do not update status after we are deadXan Lopez2011-02-121-17/+19
| | | | We now reach to the EphyEmbed, so this is dangerous.
* Sync with upstream GeditOverlay codeXan Lopez2011-02-121-1/+1
|
* Change packing order for gedit overlayXan Lopez2011-02-111-4/+4
| | | | | Seems GeditOverlay works better if we pack directly the scrollable widget on it, then pack the overlay in a scrolled window. Do that.
* Port floating statusbar to gedit's overlay widgetXan Lopez2011-02-114-97/+36
| | | | | | | | | | Works correctly in framed pages, and fixes a few bugs along the way (not to mention it should be more efficient since it does not redraw needlessly). The gedit code has been modified to get rid of the animation stuff we don't really need atm; we have coordinated with the gedit developers and hopefully both versions will be in sync again really soon.
* ephy-embed-single: Update to use direct-from-libsoup SoupCacheDan Winship2011-02-031-8/+10
| | | | | | and update configure.ac to require the corresponding libsoup https://bugzilla.gnome.org/show_bug.cgi?id=636861
* ephy-embed-single: make sure flash plugin is disabledCarlos Garcia Campos2011-01-111-3/+1
| | | | | | | | | There might be more than one plugin instance for flash. Iterate the whole list to be sure we have disabled all the possible instances. Bug #637959 Signed-off-by: Diego Escalante Urrelo <descalante@igalia.com>
* Use the new GTK_STATE_FLAG_NORMAL flagDiego Escalante Urrelo2011-01-111-1/+1
| | | | | | | Until 2.99.0 GtkStyleContext didn't have a "normal" flag, the closest thing was GTK_STATE_FLAG_ACTIVE, but it is not necessarily correct. Bug #636501
* Port to gtk+ master's GtkStyleContextDiego Escalante Urrelo2010-12-151-17/+23
| | | | | | | Updates all our uses of GtkStyle stuff to the newer GtkStyleContext API. ephy-web-view porting done by Matthias Clasen <mclasen@redhat.com> Bug #636501
* ephy-embed-single: move code from init to initializeXan Lopez2010-12-141-16/+16
|
* ephy-embed-single: couple of style fixesXan Lopez2010-12-141-2/+2
|
* ephy-embed-single: disable Flash by defaultXan Lopez2010-12-131-0/+16
| | | | | | The Adobe flash plugin uses GTK+2.x, so it cannot be loaded in our (GTK+3.x) process without causing a crash. Disable it by default until we implement a solution.
* ephy-web-view.c: fix typoXan Lopez2010-12-121-1/+1
|
* ephy-web-view: use custom error pagesDiego Escalante Urrelo2010-12-112-12/+148
| | | | | | Show nice error pages instead of WebKitGTK+'s defaults. Bug #592667
* ephy-web-view: make defines friendlier with introspectionDiego Escalante Urrelo2010-12-092-3/+3
| | | | | | Non prefixed names trigger lots of warnings, avoid them. Bug #636790
* ephy-permission-manager: fix names of permission typesDiego Escalante Urrelo2010-12-092-5/+7
| | | | | | Prefix them with EPHY_PERMISSION_TYPE instead of "EPT_". Bug #636790
* introspection: fix wrong and missing annotationsDiego Escalante Urrelo2010-12-097-23/+38
| | | | Bug #636790
* prefs-dialog: new custom font selection UIDiego Escalante Urrelo2010-12-081-2/+105
| | | | | | | | Allow users to set custom sans, serif and monospace fonts if they don't want the defaults, which are the desktop wide settings in the org.gnome.desktop.interface schema. Bug #636761
* ephy-embed-prefs: use minimum-font-size instead of minimum-logical-font-sizeDiego Escalante Urrelo2010-12-081-1/+1
| | | | | | minimum-logical-font-size doesn't works as expected by the UI. Bug #636761
* ephy-embed-single: don't use macros when not neededDiego Escalante Urrelo2010-12-081-1/+1
| | | | We can use the arguments of the function safely.
* ephy-embed-prefs: initialize prefs from settingsDiego Escalante Urrelo2010-12-071-11/+15
| | | | Settings kept in sync with g_signal_connect were missing an initialization.
* ephy-profile-migration: separate migration code into another binaryDiego Escalante Urrelo2010-12-072-19/+19
| | | | | | | | | | | The migration code is now in the ephy-profile-migrator binary, this means: - epiphany is not linking to NSS anymore - lib/ephy-profile-migration.c was split into: + lib/ephy-profile-migrator.c: the new ephy-profile-migrator binary + lib/ephy-profile-utils.c: convenience _ephy_profile_*_form_auth_data functions. - testing for migration is done without running ephy-profile-migrator Bug #636685
* ephy-embed: clean up embed widget skeletonDiego Escalante Urrelo2010-12-062-65/+37
| | | | | | | | The inspector embedding breaks some assumptions about the internal embed widgetry, mainly breaking EPHY_GET_EMBED_FROM_EPHY_WEB_VIEW macro. The embed now has the main EphyWebView in a GtkPaned permanently. Bug #628459
* Handle all the different kind of errors in the load_error_cb callbackAlejandro G. Castro2010-12-011-16/+57
| | | | | | and control they are caused by the main frame. Bug #623012
* ephy-web-view: manually unref DOM objects when neededXan Lopez2010-11-221-0/+8
| | | | | | Some DOM objects are not garbage collected by WebKit (since they are not in the DOM tree), manually unref them when they are not needed anymore.
* WebKitSoupCache expects a max cache size in bytesSergio Villar Senin2010-11-181-1/+1
| | | | Bug #635066
* Use gtk_paned_new() instead gtk_[h|v]paned_new()Javier Jardón2010-11-091-1/+1
|
* ephy-web-view: use full content zoom by defaultXan Lopez2010-11-081-0/+7
| | | | | | | As a FIXME we could support both (at the same time) somewhat easily, we just need to add the needed APIs in WebKitGTK+. Bug #615362
* ephy-web-view: remove ge-dom-mouse signalsXan Lopez2010-11-062-37/+0
| | | | They are not even emitted anymore, and are unused.
* Remove libnotify dependencyXan Lopez2010-10-291-84/+0
| | | | | We are going to revamp the downloads UI to fit better in the Shell design, but for now we can just get rid of this.
* Always enable Web InspectorXan Lopez2010-10-241-4/+1
| | | | | I don't think it makes any sense to make this optional, much less to have a UI preference for it.
* ephy-web-view: don't use set-scroll-adjustments signalXan Lopez2010-10-241-7/+19
| | | | Instead rely on notify::{h,v}adjustment
* Added soup cacheSergio Villar Senin2010-10-151-0/+44
|
* gsettings: port epiphany to gsettingsDiego Escalante Urrelo2010-10-088-325/+191
| | | | | | Adds our own schemas, a migration file and removes old gconf API and files. Bug #624485
* Adapt to latest changes in the GTK+ drawing modelXan Lopez2010-10-051-11/+9
| | | | | Mostly moving from ::expose-event to ::draw, and adapting to the changes in the paint functions.
* ephy-embed: add _ prefix to instance/class structsXan Lopez2010-10-042-6/+6
|
* ephy-favicon-cache: remove failed download filesDiego Escalante Urrelo2010-08-311-1/+7
| | | | Bug #618627
* ephy-favicon-cache: don't store invalid icon typesDiego Escalante Urrelo2010-08-311-11/+48
| | | | | | | Refuse to store in the cache any invalid icon type, this prevents us from storing 404 html pages as favicons. Bug #618627
* ephy-favicon-cache: remove invalid files on getDiego Escalante Urrelo2010-08-311-2/+2
| | | | | | | When calling ephy_favicon_cache_get we might hit an invalid file type that we didn't catch previously, delete it. Bug #618627
* ephy-favicon-cache: remove legacy EPHY_NODE_FAVICON_PROP_CHECKOLDDiego Escalante Urrelo2010-08-311-5/+0
| | | | Bug #618627
* downloader-view.c: do not overwrite timeout IDXan Lopez2010-08-301-1/+2
| | | | | | We just use it to update the buttons 100ms later, so having one is enough. If we overwrite it we might crash down the road when we run the timeout on a disposed DV.
* Brow paper bag commit fixing bracer style.Gustavo Noronha Silva2010-08-251-2/+1
|
* Use the Geolocation support in WebKitGTK+Gustavo Noronha Silva2010-08-251-0/+84
| | | | | | | | | Using the infrastructure for info bars, present policy requests to the user so they can allow/deny them based on the URI of the frame that is requesting. Moving forward, it would be a good idea to offer to save the decision, and store it in the history entry for that site. Bug #626687
* Make the inspector window biggerGustavo Noronha Silva2010-08-251-1/+1
| | | | | | | Its current size is not very helpful, and causes a small part of the inspector to be cut off horizontally. Bug #626625
* Bring inspector window to front when the inspector requests a showGustavo Noronha Silva2010-08-251-1/+1
| | | | Bug #626493
* Only show/hide the inspector window when it is detachedGustavo Noronha Silva2010-08-251-9/+17
| | | | Bug #626489
* Set Accept-Language header correctlyJosselin Mouette2010-08-171-4/+48
| | | | | | | | | | | | This makes language autodetection, as implemented by some websites, to work. Most of the code stolen from libsoup. Original patch from Mario Sánchez Prada. Updated to work with non-English locales. Approved by Gustavo Noronha. Bug 602547
* ephy-embed-prefs.h: remove old unused definesDiego Escalante Urrelo2010-08-101-12/+0
| | | | Bug #626454
* Allow attaching/detaching the inspector in Epiphany's windowGustavo Noronha Silva2010-08-031-8/+114
| | | | Bug #625640
* ephy-embed-prefs: remove old font definesDiego Escalante Urrelo2010-08-031-6/+0
| | | | Bug #625922
* ephy-web-view: use GObject DOM for ge-feed-linkDiego Escalante Urrelo2010-08-021-137/+28
| | | | Bug #625808
* ephy-web-view: use GObject DOM for form fill/saveDiego Escalante Urrelo2010-08-021-289/+121
| | | | Bug #625404
* Defaults to ALL FILES on save_as dialogsJorge Kalmbach2010-07-091-1/+1
| | | | Bug #601312
* ephy-embed: don't create Save As button manuallyDiego Escalante Urrelo2010-06-121-10/+3
| | | | Bug #621050
* ephy-embed: clean up confirm_action_from_mimeDiego Escalante Urrelo2010-06-121-35/+36
| | | | | | Avoid duplication of code. Bug #621050
* Fixed detected feed URL for relative URIsFrédéric Péters2010-06-081-1/+14
| | | | Bug #609817
* Do not change the address if we are still loading the previous pageAlejandro G. Castro2010-06-021-4/+8
| | | | | | | | | We were replacing the address with the old one even in the case the user cancelled the load because he added a new web page before the previous one finished the loading process. This patch adds a check to control if we can expire the address. Bug #620129
* ephy-web-view: remove dom-content-loaded signalXan Lopez2010-05-252-20/+0
| | | | | Would duplicate the functionality of the WebKit DOM signals, if it worked at all...
* ephy-web-view: factor statusbar drawing code out of expose handlerXan Lopez2010-05-231-39/+47
|
* ephy-web-view: add a bit of padding to the statusbarXan Lopez2010-05-231-12/+17
|
* Update the status message from within the EphyWebViewXan Lopez2010-05-191-0/+24
| | | | | There's no need anymore for the EphyWindow to do this, we can get rid of one extra roundtrip.
* Do not hardcode the statusbar context descriptionsXan Lopez2010-05-191-0/+3
| | | | | Define them in the EphyWebView header, since we'll need to create the context ids from multiple files.
* Use a chromium-like status bar by defaultXan Lopez2010-05-192-61/+325
| | | | | | | | | | Get rid of our statusbar for good and switch to something like what Chromium uses, since it takes less vertical space. The only regression is that we lose the resize grip, but that should be re-added to GtkWindow soon. Bug #609713
* Fix crash when trying to load URIs with no pathGustavo Noronha Silva2010-05-171-1/+1
| | | | | Trying to load file:, for instance, will crash Epiphany. This commit fixes this. See http://bugs.debian.org/554595.
* ephy-embed-single: remove add_sidebar signalDiego Escalante Urrelo2010-05-142-24/+0
| | | | We removed the sidebar extension for 2.30.
* Do not consider dots in directory names when looking for the extension of a ↵Sergio Villar Senin2010-05-051-1/+3
| | | | file name
* Handle the WEBKIT_NETWORK_ERROR_CANCELLED failAlejandro G. Castro2010-05-041-1/+9
| | | | | | In this case the user cancelled the load, we set the address of the current page loaded in the webview again in order to avoid showing an URL that was not committed.
* Handle LOAD_FAILED statusAlejandro G. Castro2010-05-041-0/+36
| | | | | | | Modified the state of the webivew in case the load failed to avoid keeping the old title or icon in that situation. Bug #593743
* Fix title modification in provisional stateAlejandro G. Castro2010-05-041-3/+5
| | | | | | | | Avoid setting the provisional uri as the title if there is already a typed address, and set the loading_title before using it in the status message. Bug #593743
* ephy-embed: add FIXME about redirects and EphyHistoryXan Lopez2010-05-041-0/+2
|
* ephy-web-view: fix compiler warningXan Lopez2010-05-041-1/+1
|
* Remove obsolete get_type function from headerXan Lopez2010-05-031-1/+0
|
* Emit a signal when loading the homepageXan Lopez2010-05-031-12/+29
|
* Move homepage loading code to EphyWebViewXan Lopez2010-05-032-0/+33
| | | | | | Create a method to make the EphyWebView load the homepage set by the user. This is in preparation for creating a signal for this action, which other code in Epiphany will need.
* Move helper function into ephy-embed-utils.cXan Lopez2010-05-032-0/+16
| | | | | | Make url_is_empty a helper function in embed/, since we'll be moving code from EphyShell into EphyEmbed that uses it and we don't want to duplicate it.
* Move link message updating to EphyWebViewXan Lopez2010-05-032-10/+10
|
* Move URI handling to EphyWebViewXan Lopez2010-05-032-21/+21
|
* Move title update to EphyWebViewXan Lopez2010-05-032-24/+35
| | | | | | Does not really make sense for the EphyEmbed container to connect to its child signal and then update its title, let the child itself handle it.
* Refactored the load status callback of ephy-web-view.cAlejandro G. Castro2010-05-033-201/+113
| | | | | | | | This patch uses the ephy-embed.c callback code and refactors it in just one method in the ephy-web-view that handles all the status changes for this object. Bug #593743
* Removed the EphyWebViewNetState enumAlejandro G. Castro2010-05-023-52/+12
| | | | | | | We can use the webkit load status (WebKitLoadStatus) and avoid defining our own enum to check the net states. Bug #593743
* docs: missing comment in ephy-favicon-cacheDiego Escalante Urrelo2010-04-241-2/+2
|
* Make sure WebKitWebHistory is cleared when cleared EphyHistoryMario Sanchez Prada2010-04-203-26/+72
| | | | | | | | | | Added new function in EphyWebView to clear the history from WebKitWebView, and connect to the 'cleared' signal in EphyEmbed to call to such a function when needed. Bug #539716 Signed-off-by: Xan Lopez <xan@gnome.org>
* Send 'Referer' on headers sent for context menu HTTP downloadsMario Sanchez Prada2010-04-171-1/+30
| | | | | | | | | | Make sure the EphyEmbedPersist object is created specifying the EphyEmbed object, and create the network request inside of it using the URL from the associated web view as 'Referer' Bug #136292 Signed-off-by: Xan Lopez <xan@gnome.org>
* Check if URL is NULL before setting its history titleJose Millan Soto2010-04-071-0/+1
| | | | | | Bug #582629 Signed-off-by: Xan Lopez <xan@gnome.org>
* Ignore case of URL schemesJose Millan Soto2010-04-071-9/+14
| | | | | | | | We only accept lowercase schemes right now, for no good reason. Bug #605089 Signed-off-by: Xan Lopez <xan@gnome.org>
* Improve page print implementationJose Millan Soto2010-04-072-13/+32
| | | | | | | | | Use the already existing functions we have for print preview also for printing; fixes a bunch of usability issues. Bug #609756 Signed-off-by: Xan Lopez <xan@gnome.org>
* Only offer to open files with safe mime typesOlivier Tilloy2010-03-261-0/+1
| | | | | | | Changed the "Open" button to "Download" when the mime type of the file is not considered safe for opening. Bug #361559
* downloader-view: stay alive until notifications are goneDiego Escalante Urrelo2010-03-161-65/+69
| | | | | | | | | | | | When using notifications for downloads we usually hit the ugly case where the notification pops but there is no GtkStatusIcon for it so it will pop in the default location (usually bottom right). This is inconsistent with the behavior when the GtkStatusIcon is present, which is to show it attached to it. To fix this we hold a reference to the DownloaderView when showing the notification and release it when such notification has been closed. Bug #611779
* downloader-view: change lifetime logicDiego Escalante Urrelo2010-03-161-5/+11
| | | | | | | | | | | The DV follows the same goal as before (being alive while there are downloads). Now every download holds a reference to the DV and releases it when the download is removed (finished, cancelled, etc). The DV clears its own reference once and only once when a download is removed and there are no more downloads in queue. Bug #611779
* downloader-view: use update_download_row correctly on addDiego Escalante Urrelo2010-03-161-2/+8
| | | | | | | | | | When adding a download we should call update_download_row() *after* connecting the signal handlers or they will never be disconnected. Also, in update_download_row() we should consider that the case where it is called with a download that has already been removed as a non fatal case (i.e. just return;). This is because in downloader_view_add_download() we can have the signal handlers remove the download from the view before the manual call (it was happening vice versa before this).
* downloader-view: hide the view when last download finishesDiego Escalante Urrelo2010-03-161-0/+11
| | | | | | | | When there are no more downloads in queue, hide the view. Also if a download is added but finishes before showing the window, don't show the window nor the notification. Bug #611779
* downloader-view: use g_object_get not get_propertyDiego Escalante Urrelo2010-03-161-6/+3
| | | | | | A minor simplification. Bug #611779
* downloader-view: properly disconnect signalsDiego Escalante Urrelo2010-03-161-4/+21
| | | | | | The previous code wasn't disconnecting signals at all. Bug #611779
* downloader-view: fix controls sensitivityDiego Escalante Urrelo2010-03-161-1/+2
| | | | | | | When there are no downloads left, the Pause/Cancel buttons should not be sensitive. Bug #611779
* downloader-view: make status icon visible on showDiego Escalante Urrelo2010-03-161-0/+2
| | | | Bug #611779
* Handle EPHY_EMBED_PERSIST_NO_VIEW flagDiego Escalante Urrelo2010-03-091-0/+19
| | | | | | | This flag determines if a download should not appear in the DownloaderView window. The default is to appear, like in gecko times. Bug #611635