~ubuntu-branches/ubuntu/jaunty/file-browser-applet/jaunty

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2008-11-04 13:34:36 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081104133436-7kgxv6psv6mjnxh0
Tags: 0.6.0-0ubuntu1
* New upstream release.
 - Added context menu with a few actions (open-with, new folder here, 
   delete file/folder, create/extract archive, create CD/DVD from 
   file/folder, compile a tex file).
 - Added configuration option to make text vertical/horizontal when 
   the panel is vertical.
 - Added tooltips to configuration dialog.
 - Fixed bugs #21, #30, #34, #37, #39.
 - Plugged some memory leaks (thanks Silvio Ricardo Cordeiro).
 - Lots of code cleanup. 
* debian/control:
 - Add suggests on file-roller, brasero, and rubber 
   for new features.
 - Add Vcs-Bzr field.
 - Add versionized Build-Depend on libgtk2.0-dev (>= 2.14)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
#define APPLET_IID                      "OAFIID:GNOME_FileBrowserApplet"
37
37
#define APPLET_FACTORY_IID      "OAFIID:GNOME_FileBrowserApplet_Factory"
38
 
#define VERSION                         "0.5.9"
 
38
#define VERSION                         "0.6.0"
39
39
 
40
40
/******************************************************************************/
41
41
static const gchar file_browser_applet_menu_xml [] =
61
61
#ifdef ENABLE_HELP_DOC
62
62
        GError *error = NULL;
63
63
 
64
 
        gnome_help_display_desktop_on_screen (
65
 
                  NULL,
66
 
                  "file-browser-applet",
67
 
                  "file-browser-applet",
68
 
                  NULL,
69
 
                  gtk_widget_get_screen (widget),
70
 
                  &error);
71
 
 
72
 
        if (error) {
73
 
                utils_show_dialog ("Error",
74
 
                                                   "Could not display help.",
75
 
                                                   GTK_MESSAGE_ERROR);
76
 
                g_error_free (error);
77
 
        }
 
64
        gnome_help_display_desktop_on_screen (NULL,
 
65
                                                                                  "file-browser-applet",
 
66
                                                                                  "file-browser-applet",
 
67
                                                                                  NULL,
 
68
                                                                                  gtk_widget_get_screen (widget),
 
69
                                                                                  &error);
 
70
        utils_gerror_ok (&error, TRUE);
78
71
#else
79
 
        utils_show_dialog ("Help",
80
 
                                           "Sorry, no help or documentation yet...",
81
 
                                           GTK_MESSAGE_ERROR);
 
72
        utils_show_dialog ("Error", "Sorry, no help or documentation yet...", GTK_MESSAGE_ERROR);
82
73
#endif
83
74
        return FALSE;
84
75
}
94
85
                "Contributions by:",
95
86
                "Ivan N. Zlatev <contact@i-nz.net>",
96
87
                "Stefano Maggiolo <maggiolo@mail.dm.unipi.it>",
97
 
                "Deji Akingunola",
 
88
                "Deji Akingunola <dakingun@gmail.com>",
 
89
                "Serkan Kaba <serkan@gentoo.org>",
 
90
                "Silvio Ricardo Cordeiro <silvioricardoc@gmail.com>",
98
91
                NULL
99
92
        };
100
93
        const gchar *documenters [] = {
102
95
/*              "Axel von Bertoldi", */
103
96
                NULL
104
97
        };
105
 
        const gchar *translator_credits = _("translator_credits");
 
98
        const gchar *translator_credits = "You!!! That's right! You can help!";
106
99
 
107
100
        file = gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_PIXMAP, "file-browser-applet.png", TRUE, NULL);
108
101
        if (file != NULL) {
162
155
                                                         const  gchar *iid,
163
156
                                                         gpointer data) {
164
157
 
165
 
        if (strcmp (iid, APPLET_IID) == 0) {
166
 
            return file_browser_applet_create (applet);
167
 
        }
 
158
        if (strcmp (iid, APPLET_IID) == 0) {
 
159
                return file_browser_applet_create (applet);
 
160
        }
168
161
 
169
 
        return FALSE;
 
162
        return FALSE;
170
163
}
171
164
/******************************************************************************/
172
165
PANEL_APPLET_BONOBO_FACTORY (APPLET_FACTORY_IID,