/[gentoo-x86]/gnome-base/gnome-control-center/files/gnome-control-center-2.32.1-mime-handler2.patch
Gentoo

Contents of /gnome-base/gnome-control-center/files/gnome-control-center-2.32.1-mime-handler2.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Mar 27 16:45:12 2011 UTC (3 years, 5 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Revision bump using URL handlers for browser and mailer applications to be compatible with glib-2.28, not showing twice the configured background if it is a symlink to a known background, not erasing backgrounds.xml under some circumstances (bug #344335 by Matthew Turnbull). Remove old.

(Portage version: 2.1.9.44/cvs/Linux x86_64)

1 pacho 1.1
2     ++ gnome-control-center-2.32.1/debian/patches/141_set_default_internet_apps.patch
3    
4     Description: When starting up, read current web and mail values
5     Author: Michael Terry <michael.terry@canonical.com>
6     Bug: https://bugzilla.gnome.org/show_bug.cgi?id=638771
7    
8     Index: gnome-control-center-2.32.1/capplets/default-applications/gnome-da-capplet.c
9     ===================================================================
10     --- gnome-control-center-2.32.1.orig/capplets/default-applications/gnome-da-capplet.c 2011-01-05 15:02:37.406338902 -0500
11     +++ gnome-control-center-2.32.1/capplets/default-applications/gnome-da-capplet.c 2011-01-05 15:02:44.836276440 -0500
12     @@ -111,6 +111,34 @@
13     }
14    
15     static void
16     +set_combo_to_default_for_scheme (GtkComboBox *combo, GList *handlers, const gchar *scheme)
17     +{
18     + GAppInfo *type_default;
19     + GList *l;
20     + int index;
21     +
22     + type_default = g_app_info_get_default_for_uri_scheme (scheme);
23     + index = 0;
24     +
25     + if (type_default == NULL)
26     + return;
27     +
28     + for (l = handlers; l != NULL; l = l->next) {
29     + GnomeDAURLItem *handler = l->data;
30     + if (g_app_info_equal(handler->app_info, type_default)) {
31     + break;
32     + }
33     + ++index;
34     + }
35     +
36     + if (l != NULL) {
37     + gtk_combo_box_set_active (combo, index);
38     + }
39     +
40     + g_object_unref (type_default);
41     +}
42     +
43     +static void
44     media_combo_changed_cb (GtkComboBox *combo, GnomeDACapplet *capplet)
45     {
46     guint current_index;
47     @@ -507,6 +535,9 @@
48     fill_combo_box (capplet->icon_theme, GTK_COMBO_BOX (capplet->visual_combo_box), capplet->visual_ats, TRUE);
49     fill_combo_box (capplet->icon_theme, GTK_COMBO_BOX (capplet->mobility_combo_box), capplet->mobility_ats, TRUE);
50    
51     + set_combo_to_default_for_scheme (GTK_COMBO_BOX (capplet->web_combo_box), capplet->web_browsers, "http");
52     + set_combo_to_default_for_scheme (GTK_COMBO_BOX (capplet->mail_combo_box), capplet->mail_readers, "mailto");
53     +
54     g_signal_connect (capplet->web_combo_box, "changed", G_CALLBACK (web_combo_changed_cb), capplet);
55     g_signal_connect (capplet->mail_combo_box, "changed", G_CALLBACK (mail_combo_changed_cb), capplet);
56     g_signal_connect (capplet->term_combo_box, "changed", G_CALLBACK (terminal_combo_changed_cb), capplet);

  ViewVC Help
Powered by ViewVC 1.1.20