Commit 1956bc09 authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

some cleanup, and be paranoid about dentry we get from dentry edit and

Tue May 08 01:45:32 2001  George Lebl <jirka@5z.com>

	* launcher.c: some cleanup, and be paranoid about dentry we get
	  from dentry edit and rather hoard it

	* menu.c: We were forgetting to hoard launchers when adding from
	  the launcher adding menu.  DUH!  Fixes #53626
parent dc1dd47e
Tue May 08 01:45:32 2001 George Lebl <jirka@5z.com>
* launcher.c: some cleanup, and be paranoid about dentry we get
from dentry edit and rather hoard it
* menu.c: We were forgetting to hoard launchers when adding from
the launcher adding menu. DUH! Fixes #53626
Mon May 07 17:13:35 2001 George Lebl <jirka@5z.com>
* icon-entry-hack.c: fix selection dialog issues
......
Tue May 08 01:45:32 2001 George Lebl <jirka@5z.com>
* launcher.c: some cleanup, and be paranoid about dentry we get
from dentry edit and rather hoard it
* menu.c: We were forgetting to hoard launchers when adding from
the launcher adding menu. DUH! Fixes #53626
Mon May 07 17:13:35 2001 George Lebl <jirka@5z.com>
* icon-entry-hack.c: fix selection dialog issues
......
......@@ -688,13 +688,13 @@ really_add_launcher(GtkWidget *dialog, int button, gpointer data)
dentry = gnome_dentry_get_dentry(dedit);
if(!dentry->name || !(*(dentry->name))) {
g_free(dentry->name);
dentry->name=g_strdup("???");
if (string_empty (dentry->name)) {
g_free (dentry->name);
dentry->name = g_strdup ("???");
}
launcher = load_launcher_applet_full (NULL, dentry, panel, pos, exactpos);
if (launcher != NULL)
launcher_save (launcher);
launcher_hoard (launcher);
panel_config_sync_schedule ();
} else if(button == 2/*help*/) {
......@@ -703,7 +703,7 @@ really_add_launcher(GtkWidget *dialog, int button, gpointer data)
return;
}
gtk_widget_destroy(dialog);
gtk_widget_destroy (dialog);
}
void
......@@ -935,12 +935,12 @@ launcher_save (Launcher *launcher)
g_return_if_fail (launcher->dentry != NULL);
if (launcher->dentry->is_kde)
convert_dentry_to_gnome(launcher->dentry);
convert_dentry_to_gnome (launcher->dentry);
if (launcher->dentry->location == NULL)
launcher->dentry->location = launcher_get_unique_file ();
gnome_desktop_entry_save(launcher->dentry);
gnome_desktop_entry_save (launcher->dentry);
}
void
......
......@@ -2178,9 +2178,13 @@ add_applet (GtkWidget *w, const char *item_loc)
static void
add_launcher (GtkWidget *w, const char *item_loc)
{
load_launcher_applet (item_loc,
get_panel_from_menu_data(w),
0, FALSE);
Launcher *launcher;
launcher = load_launcher_applet
(item_loc, get_panel_from_menu_data (w), 0, FALSE);
if (launcher != NULL)
launcher_hoard (launcher);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment