~golfish/netbook-remix-launcher/desktop

« back to all changes in this revision

Viewing changes to src/launcher-sidebar.c

  • Committer: Neil J. Patel
  • Date: 2008-07-24 10:42:19 UTC
  • Revision ID: njpatel@gmail.com-20080724104219-hq0pr6wk42mnzsg4
* ume-launcher doesn't use translated/stock items  (LP: #238582)
  Patch By: golfish <golfish218@gmail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *
18
18
 */
19
19
 
 
20
#if HAVE_CONFIG_H
 
21
#include <config.h>
 
22
#endif
 
23
 
20
24
#include "launcher-sidebar.h"
21
25
 
22
26
#include <gio/gio.h>
 
27
#include <glib/gi18n.h>
23
28
 
24
29
#include "launcher-config.h"
25
30
#include "launcher-defines.h"
325
330
    }
326
331
 
327
332
    shortcut = priv->trash = launcher_shortcut_new ("gnome-fs-trash-empty", 
328
 
                                                    "Remove favorite",
 
333
                                                    _("Remove favorite"),
329
334
                                                    FALSE);
330
335
  
331
336
    clutter_container_add_actor (CLUTTER_CONTAINER (priv->group), shortcut);
440
445
 
441
446
  home = g_strdup_printf ("nautilus --no-desktop --browser %s", 
442
447
                          g_get_home_dir ());
443
 
  shortcut = add_shortcut (sidebar, "gnome-fs-home", "Home", home);
 
448
  shortcut = add_shortcut (sidebar, "gnome-fs-home", _("Home"), home);
444
449
  g_free (home);
445
 
  shortcut = add_shortcut (sidebar, "gnome-fs-network", "Network", 
 
450
  shortcut = add_shortcut (sidebar, "gnome-fs-network", _("Network"), 
446
451
                           "nautilus --no-desktop --browser Network:///");
447
452
 
448
453
  volumes = g_volume_monitor_get_volumes (priv->monitor);
472
477
  ensure_layout (sidebar);
473
478
 
474
479
  shortcut = launcher_shortcut_new ("gtk-quit",
475
 
                                    "Quit...",
 
480
                                    _("Quit..."),
476
481
                                    FALSE);
477
482
  clutter_container_add_actor (CLUTTER_CONTAINER (priv->group), shortcut);
478
483
  clutter_actor_set_position (shortcut, 0, 
483
488
  g_signal_connect (shortcut, "clicked", G_CALLBACK (on_link_clicked), NULL);
484
489
 
485
490
  shortcut = launcher_shortcut_new ("gtk-preferences",
486
 
                                    "Settings",
 
491
                                    _("Settings"),
487
492
                                    FALSE);
488
493
  clutter_container_add_actor (CLUTTER_CONTAINER (priv->group), shortcut);
489
494
  clutter_actor_set_position (shortcut, 0,