Merge lp:~abreu-alexandre/bamf/remove-old-webapps-mode into lp:bamf

Proposed by Alexandre Abreu
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 596
Merged at revision: 595
Proposed branch: lp:~abreu-alexandre/bamf/remove-old-webapps-mode
Merge into: lp:bamf
Diff against target: 59 lines (+2/-20)
3 files modified
lib/libbamf/bamf-application.c (+1/-8)
src/bamf-matcher.c (+1/-0)
tests/libbamf/test-application.c (+0/-12)
To merge this branch: bzr merge lp:~abreu-alexandre/bamf/remove-old-webapps-mode
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
David Barth (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+209977@code.launchpad.net

Commit message

Remove old webapp related code since now we dont use browser tab matching anymore.

Description of the change

Remove old webapp related code since now we dont use browser tab matching anymore.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
596. By Alexandre Abreu

remove webpp test

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
David Barth (dbarth) wrote :

+1, webapps should be special cased anymore

review: Approve
Revision history for this message
David Barth (dbarth) wrote :

should *not*

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

+1, thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/libbamf/bamf-application.c'
--- lib/libbamf/bamf-application.c 2013-08-05 16:18:46 +0000
+++ lib/libbamf/bamf-application.c 2014-03-07 18:21:16 +0000
@@ -663,14 +663,7 @@
663 self->priv->cached_mimes = g_key_file_get_string_list (keyfile, G_KEY_FILE_DESKTOP_GROUP,663 self->priv->cached_mimes = g_key_file_get_string_list (keyfile, G_KEY_FILE_DESKTOP_GROUP,
664 G_KEY_FILE_DESKTOP_KEY_MIME_TYPE, NULL, NULL);664 G_KEY_FILE_DESKTOP_KEY_MIME_TYPE, NULL, NULL);
665665
666 if (g_strcmp0 (g_app_info_get_executable (G_APP_INFO (desktop_info)), "unity-webapps-runner") == 0)666 self->priv->application_type = g_strdup ("system");
667 {
668 self->priv->application_type = g_strdup ("webapp");
669 }
670 else
671 {
672 self->priv->application_type = g_strdup ("system");
673 }
674667
675 g_free (icon);668 g_free (icon);
676 g_free (name);669 g_free (name);
677670
=== modified file 'src/bamf-matcher.c'
--- src/bamf-matcher.c 2013-08-07 16:45:26 +0000
+++ src/bamf-matcher.c 2014-03-07 18:21:16 +0000
@@ -61,6 +61,7 @@
61 "^gksu(do)?$", "^sudo$", "^su-to-root$", "^amdxdg-su$", "^java(ws)?$", "^cli$",61 "^gksu(do)?$", "^sudo$", "^su-to-root$", "^amdxdg-su$", "^java(ws)?$", "^cli$",
62 "^mono$", "^ruby$", "^padsp$", "^aoss$", "^python(\\d.\\d)?$", "^(ba)?sh$",62 "^mono$", "^ruby$", "^padsp$", "^aoss$", "^python(\\d.\\d)?$", "^(ba)?sh$",
63 "^perl$", "^env$", "^xdg-open$", "^qmlscene$", "^qmlviewer$",63 "^perl$", "^env$", "^xdg-open$", "^qmlscene$", "^qmlviewer$",
64 "^unity-webapps-runner$", "^webapp-container$",
64 /* javaws strings: */ "^net\\.sourceforge\\.jnlp\\.runtime\\.Boot$", "^rt\\.jar$",65 /* javaws strings: */ "^net\\.sourceforge\\.jnlp\\.runtime\\.Boot$", "^rt\\.jar$",
65 "^com\\.sun\\.javaws\\.Main$", "^deploy\\.jar$"66 "^com\\.sun\\.javaws\\.Main$", "^deploy\\.jar$"
66};67};
6768
=== modified file 'tests/libbamf/test-application.c'
--- tests/libbamf/test-application.c 2013-06-19 16:56:49 +0000
+++ tests/libbamf/test-application.c 2014-03-07 18:21:16 +0000
@@ -93,17 +93,6 @@
93}93}
9494
95static void95static void
96test_favorite_valid_desktop_file_webapp (void)
97{
98 BamfApplication *application;
99
100 application = bamf_application_new_favorite (DATA_DIR"/ubuntu-web-app.desktop");
101 g_assert_cmpstr (bamf_application_get_application_type (application), ==, "webapp");
102
103 g_object_unref (application);
104}
105
106static void
107test_favorite_mime_type_filled (void)96test_favorite_mime_type_filled (void)
108{97{
109 BamfApplication *application;98 BamfApplication *application;
@@ -150,5 +139,4 @@
150 g_test_add_func (DOMAIN"/Favorite/NoIcon", test_favorite_no_icon);139 g_test_add_func (DOMAIN"/Favorite/NoIcon", test_favorite_no_icon);
151 g_test_add_func (DOMAIN"/Favorite/MimeType/Filled", test_favorite_mime_type_filled);140 g_test_add_func (DOMAIN"/Favorite/MimeType/Filled", test_favorite_mime_type_filled);
152 g_test_add_func (DOMAIN"/Favorite/MimeType/Empty", test_favorite_mime_type_empty);141 g_test_add_func (DOMAIN"/Favorite/MimeType/Empty", test_favorite_mime_type_empty);
153 g_test_add_func (DOMAIN"/Favorite/DesktopFile/Valid/WebApp", test_favorite_valid_desktop_file_webapp);
154}142}

Subscribers

People subscribed via source and target branches

to all changes: