Merge lp:~attente/unity-control-center/1430971 into lp:unity-control-center

Proposed by William Hua
Status: Merged
Approved by: Sebastien Bacher
Approved revision: no longer in the source branch.
Merged at revision: 12810
Proposed branch: lp:~attente/unity-control-center/1430971
Merge into: lp:unity-control-center
Diff against target: 81 lines (+23/-13)
2 files modified
debian/control (+1/-2)
panels/region/gnome-region-panel-input.c (+22/-11)
To merge this branch: bzr merge lp:~attente/unity-control-center/1430971
Reviewer Review Type Date Requested Status
Sebastien Bacher Approve
Review via email: mp+252831@code.launchpad.net

Commit message

Remove fcitx-data from Recommends and check if the required file, config.desc, is available at runtime. Trying to dist-upgrade currently pulls in the fcitx-bin which is higher priority than ibus.

Description of the change

Remove fcitx-data from Recommends and check if the required file, config.desc, is available at runtime. Trying to dist-upgrade currently pulls in the fcitx-bin which is higher priority than ibus.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks

review: Approve
12810. By William Hua

Remove fcitx-data from Recommends and check if the required file, config.desc, is available at runtime. Trying to dist-upgrade currently pulls in the fcitx-bin which is higher priority than ibus. Fixes: #1430971
Approved by: Sebastien Bacher

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/control'
--- debian/control 2015-02-12 14:09:23 +0000
+++ debian/control 2015-03-12 22:02:03 +0000
@@ -68,7 +68,6 @@
68 accountsservice,68 accountsservice,
69 apg,69 apg,
70 desktop-file-utils,70 desktop-file-utils,
71 fcitx-data,
72 gkbd-capplet (>= 3.5.90),71 gkbd-capplet (>= 3.5.90),
73 gnome-desktop3-data,72 gnome-desktop3-data,
74 adwaita-icon-theme,73 adwaita-icon-theme,
@@ -109,7 +108,7 @@
109 gnome-user-guide | ubuntu-docs,108 gnome-user-guide | ubuntu-docs,
110 gstreamer0.10-pulseaudio,109 gstreamer0.10-pulseaudio,
111 libcanberra-gtk-module,110 libcanberra-gtk-module,
112 x11-xserver-utils111 x11-xserver-utils,
113Provides: unity-control-center-datetime,112Provides: unity-control-center-datetime,
114 gnome-control-center-unity,113 gnome-control-center-unity,
115Description: utilities to configure the GNOME desktop114Description: utilities to configure the GNOME desktop
116115
=== modified file 'panels/region/gnome-region-panel-input.c'
--- panels/region/gnome-region-panel-input.c 2014-09-17 15:29:58 +0000
+++ panels/region/gnome-region-panel-input.c 2015-03-12 22:02:03 +0000
@@ -120,6 +120,7 @@
120struct _FcitxShareStateConfig120struct _FcitxShareStateConfig
121{121{
122 FcitxGenericConfig config;122 FcitxGenericConfig config;
123 gboolean config_valid;
123 gint share_state;124 gint share_state;
124};125};
125126
@@ -1733,6 +1734,9 @@
1733static void1734static void
1734save_fcitx_config (void)1735save_fcitx_config (void)
1735{1736{
1737 if (!fcitx_config.config_valid)
1738 return;
1739
1736 FILE *file = FcitxXDGGetFileUserWithPrefix (NULL, "config", "w", NULL);1740 FILE *file = FcitxXDGGetFileUserWithPrefix (NULL, "config", "w", NULL);
1737 FcitxConfigSaveConfigFileFp (file, &fcitx_config.config, get_fcitx_config_desc ());1741 FcitxConfigSaveConfigFileFp (file, &fcitx_config.config, get_fcitx_config_desc ());
17381742
@@ -1745,20 +1749,27 @@
1745static void1749static void
1746load_fcitx_config (void)1750load_fcitx_config (void)
1747{1751{
1748 static gboolean loaded = FALSE;1752 static gboolean attempted = FALSE;
17491753
1750 if (loaded)1754 if (attempted)
1751 return;1755 return;
17521756
1753 FILE *file = FcitxXDGGetFileUserWithPrefix (NULL, "config", "r", NULL);1757 FcitxConfigFileDesc *config_file_desc = get_fcitx_config_desc ();
1754 FcitxConfigFile *config_file = FcitxConfigParseConfigFileFp (file, get_fcitx_config_desc ());1758
1755 FcitxShareStateConfigConfigBind (&fcitx_config, config_file, get_fcitx_config_desc ());1759 if (config_file_desc)
1756 FcitxConfigBindSync (&fcitx_config.config);1760 {
17571761 FILE *file = FcitxXDGGetFileUserWithPrefix (NULL, "config", "r", NULL);
1758 if (file)1762
1759 fclose (file);1763 FcitxConfigFile *config_file = FcitxConfigParseConfigFileFp (file, config_file_desc);
17601764 FcitxShareStateConfigConfigBind (&fcitx_config, config_file, config_file_desc);
1761 loaded = TRUE;1765 FcitxConfigBindSync (&fcitx_config.config);
1766 fcitx_config.config_valid = TRUE;
1767
1768 if (file)
1769 fclose (file);
1770 }
1771
1772 attempted = TRUE;
1762}1773}
17631774
1764static void1775static void

Subscribers

People subscribed via source and target branches