Commit 4d7e321e authored by Havoc Pennington's avatar Havoc Pennington Committed by Havoc Pennington

Add a list of desktop entries, and "advanced mode" for the old behavior

2001-05-29  Havoc Pennington  <hp@redhat.com>

	* gnome-run.c: Add a list of desktop entries, and "advanced mode"
	for the old behavior

	* menu.c: add panel_add_favorite() function

	* menu-fentry.c: add a way to list all loaded dirs
parent 62b18c64
2001-05-29 Havoc Pennington <hp@redhat.com>
* gnome-run.c: Add a list of desktop entries, and "advanced mode"
for the old behavior
* menu.c: add panel_add_favorite() function
* menu-fentry.c: add a way to list all loaded dirs
Tue May 29 00:55:34 2001 George Lebl <jirka@5z.com>
* menu.c, drawer.c, extern.c, launcher.c, logout.c, session.c: Never
......
2001-05-29 Havoc Pennington <hp@redhat.com>
* gnome-run.c: Add a list of desktop entries, and "advanced mode"
for the old behavior
* menu.c: add panel_add_favorite() function
* menu-fentry.c: add a way to list all loaded dirs
Tue May 29 00:55:34 2001 George Lebl <jirka@5z.com>
* menu.c, drawer.c, extern.c, launcher.c, logout.c, session.c: Never
......
This diff is collapsed.
......@@ -797,6 +797,13 @@ fr_get_dir (const char *mdir)
return fr_read_dir (NULL, mdir, NULL, NULL, 1);
}
/* Get all directories we have in memory */
GSList*
fr_get_all_dirs (void)
{
return dir_list;
}
void
fr_force_reread (void)
{
......
......@@ -71,6 +71,7 @@ FileRec * fr_get_dir(const char *mdir);
gboolean fr_is_subdir (const char *dir, const char *superdir, int superdir_len);
char * fr_get_mergedir (const char *dir);
void fr_force_reread(void);
GSList* fr_get_all_dirs (void);
void init_fr_chunks (void);
......
......@@ -364,6 +364,12 @@ add_app_to_personal (GtkWidget *widget, const char *item_loc)
g_free (to);
}
void
panel_add_favorite (const char *source_dentry)
{
add_app_to_personal (NULL, source_dentry);
}
static PanelWidget *
get_panel_from_menu_data(GtkWidget *menu, gboolean must_have)
{
......
......@@ -125,6 +125,7 @@ void our_gtk_menu_position (GtkMenu *menu);
* scroll-menu, since people copy it around */
GtkWidget * hack_scroll_menu_new (void);
void panel_add_favorite (const char *source_dentry);
#define MENU_PATH "menu_path"
......
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