~cairo-dock-team/ubuntu/precise/cairo-dock/3.0.0.1

« back to all changes in this revision

Viewing changes to src/icon-factory/cairo-dock-launcher-factory.c

  • Committer: Package Import Robot
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2012-02-16 01:08:11 UTC
  • mfrom: (1.1.21)
  • Revision ID: package-import@ubuntu.com-20120216010811-yhscmns26s6ngil8
Tags: 3.0.0.0beta1-0ubuntu1
* New upstream release. (LP: #932041)
* Upstream (short) ChangeLog:
 - The taskbar has been greatly enhanced.
 - The control of the dock from the keyboard is now very powerful:
  - many shortkeys have been added in different applets
  - you can activate a launcher by pressing a shortkey + its number
  - all shortkeys can now be managed in a single place
     in the configuration window.
 - A new Twitter applet lets you tweet in one click.
 - A new applet to inhibit the screensaver in one click.
 - Cairo-Dock now uses GTK3, for a better integration in a Gnome desktop
 - It's possible to donate to support the project!
 - (...)
* debian/patches:
 - Removed all previous patches (now in upstream)
* debian/rules and debian/control:
 - Added multiarch support
* debian/control:
 - libgtk-3-dev is now needed instead of libgtk2.0-dev
 - libgtkglext1-dev is no longer needed
    (replaced by libgl, libglu and libpango)
 - cairo-dock: increase the version of plug-ins packages
    and added: cairo-dock-plug-ins-dbus-interface-python
 - cairo-dock-dev has been replaced by libgldi-dev
    and dependences have been updated
 - Added a new package (libgldi3) in order to support multiarch
    and to fix this lintian error: package-name-doesnt-match-sonames
* debian/cairo-dock-core.install and debian/libgldi3.install:
 - libgldi3 package has been added
 - It contains the library used by cairo-dock
 - MultiArch is supported
* debian/cairo-dock-dev.install and debian/libgldi-dev.install:
 - cairo-dock-dev has been replaced by libgldi-dev
* Updated debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
return class
57
57
*/
58
58
 
59
 
gboolean cairo_dock_remove_version_from_string (gchar *cString)
60
 
{
61
 
        if (cString == NULL)
62
 
                return FALSE;
63
 
        int n = strlen (cString);
64
 
        gchar *str = cString + n - 1;
65
 
        do
66
 
        {
67
 
                if (g_ascii_isdigit(*str) || *str == '.')
68
 
                {
69
 
                        str --;
70
 
                        continue;
71
 
                }
72
 
                if (*str == '-' || *str == ' ')  // 'Glade-2', 'OpenOffice 3.1'
73
 
                {
74
 
                        *str = '\0';
75
 
                        return TRUE;
76
 
                }
77
 
                else
78
 
                        return FALSE;
79
 
        }
80
 
        while (str != cString);
81
 
        return FALSE;
82
 
}
83
59
 
84
60
#define _print_error(cDesktopFileName, erreur)\
85
61
        if (erreur != NULL) {\
157
133
        else
158
134
                *cSubDockRendererName = NULL;
159
135
        
160
 
        if (g_key_file_has_key (pKeyFile, "Desktop Entry", "group", NULL))
161
 
        {
162
 
                icon->iGroup = g_key_file_get_integer (pKeyFile, "Desktop Entry", "group", NULL);
163
 
        }
164
 
        
165
136
        int iSpecificDesktop = g_key_file_get_integer (pKeyFile, "Desktop Entry", "ShowOnViewport", NULL);
166
137
        if (iSpecificDesktop != 0)
167
138
                cairo_dock_set_specified_desktop_for_icon (icon, iSpecificDesktop);