mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
1999-05-01 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gcmd.c (gnome_new_link): Allow users to create url shortcuts on the desktop menu.
This commit is contained in:
parent
049c75b6c0
commit
6b8d2323bd
@ -1,3 +1,8 @@
|
||||
1999-05-01 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gcmd.c (gnome_new_link): Allow users to create url shortcuts on
|
||||
the desktop menu.
|
||||
|
||||
1999-04-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gdesktop.c (click_proxy_motion): Terminate rubberbanding if the
|
||||
|
24
gnome/gcmd.c
24
gnome/gcmd.c
@ -909,3 +909,27 @@ set_cursor_normal (WPanel *panel)
|
||||
gdk_cursor_destroy (cursor);
|
||||
gdk_flush ();
|
||||
}
|
||||
|
||||
void
|
||||
gnome_new_link (GtkWidget *widget, WPanel *panel)
|
||||
{
|
||||
char *template;
|
||||
char *url;
|
||||
|
||||
url = input_expand_dialog (_("Creating a desktop link"),
|
||||
_("Enter the URL:"), "");
|
||||
if (!url)
|
||||
return;
|
||||
|
||||
template = g_concat_dir_and_file (desktop_directory, "urlXXXXXX");
|
||||
|
||||
if (mktemp (template)) {
|
||||
char *icon;
|
||||
|
||||
icon = g_concat_dir_and_file (ICONDIR, "gnome-http-url.png");
|
||||
desktop_create_url (template, url, url, icon);
|
||||
g_free (icon);
|
||||
}
|
||||
g_free (template);
|
||||
g_free (url);
|
||||
}
|
||||
|
@ -27,5 +27,6 @@ void gnome_reverse_selection_cmd_panel (WPanel *panel);
|
||||
void gnome_select (GtkWidget *widget, WPanel *panel);
|
||||
void set_cursor_normal (WPanel *panel);
|
||||
void set_cursor_busy (WPanel *panel);
|
||||
void gnome_new_link (GtkWidget *widget, WPanel *panel);
|
||||
|
||||
#endif /* __GCMD_H */
|
||||
|
@ -2379,6 +2379,7 @@ handle_rescan_desktop (GtkWidget *widget, gpointer data)
|
||||
{
|
||||
desktop_reload_icons (FALSE, 0, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
set_background_image (GtkWidget *widget, gpointer data)
|
||||
{
|
||||
@ -2406,6 +2407,7 @@ static GnomeUIInfo gnome_panel_new_menu [] = {
|
||||
GNOMEUIINFO_ITEM_NONE(N_("_Terminal"), N_("Launch a new terminal in the current directory"), gnome_open_terminal),
|
||||
/* If this ever changes, make sure you update create_new_menu accordingly. */
|
||||
GNOMEUIINFO_ITEM_NONE( N_("_Directory..."), N_("Creates a new directory"), gnome_mkdir_cmd ),
|
||||
GNOMEUIINFO_ITEM_NONE( N_("URL L_ink..."), N_("Creates a new URL link"), gnome_new_link ),
|
||||
GNOMEUIINFO_ITEM_NONE( N_("_Launcher..."), N_("Creates a new launcher"), gnome_new_launcher ),
|
||||
GNOMEUIINFO_END
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user