Commit 90ea05b2 authored by Glynn Foster's avatar Glynn Foster Committed by Glynn Foster

Whack gnome-run button applet thing which serves very little purpose.

2001-12-08  Glynn Foster  <glynn.foster@sun.com>

	* gnome-run.c, gnome-run.h, menu.c,
	panel.c, session.c:  Whack gnome-run button applet thing which
	serves very little purpose.
parent 2ba6531f
2001-12-08 Glynn Foster <glynn.foster@sun.com>
* gnome-run.c, gnome-run.h, menu.c,
panel.c, session.c: Whack gnome-run button applet thing which
serves very little purpose.
2001-12-08 Glynn Foster <glynn.foster@sun.com>
* launcher.c: (setup_button): Make adding launchers not crash.
......
......@@ -1283,23 +1283,3 @@ create_run_widget(void)
return button;
}
void
load_run_applet (PanelWidget *panel,
int pos,
gboolean exactpos)
{
GtkWidget *run;
AppletInfo *info;
run = create_run_widget ();
if (!run)
return;
info = panel_applet_register (run, NULL, NULL, panel,
pos, exactpos, APPLET_RUN);
if (!info)
return;
panel_applet_add_callback (info, "help", GTK_STOCK_HELP, _("Help"));
}
......@@ -29,6 +29,4 @@
void show_run_dialog (void);
void show_run_dialog_with_text (const char *text);
void load_run_applet(PanelWidget *panel, int pos, gboolean exactpos);
#endif /* GNOME_RUN_H */
......@@ -2080,12 +2080,6 @@ add_lock_to_panel (GtkWidget *widget, gpointer data)
load_lock_applet (get_panel_from_menu_data(widget, TRUE), 0, FALSE);
}
static void
add_run_to_panel (GtkWidget *widget, gpointer data)
{
load_run_applet (get_panel_from_menu_data(widget, TRUE), 0, FALSE);
}
static void
try_add_status_to_panel (GtkWidget *widget, gpointer data)
{
......@@ -4099,16 +4093,6 @@ make_add_submenu (GtkWidget *menu, gboolean fake_submenus)
NULL);
setup_internal_applet_drag(menuitem, "LOCK:NEW");
menuitem = gtk_image_menu_item_new ();
setup_menuitem_try_pixmap (menuitem,
"gnome-run.png",
_("Run button"));
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
g_signal_connect (G_OBJECT(menuitem), "activate",
G_CALLBACK(add_run_to_panel),
NULL);
setup_internal_applet_drag(menuitem, "RUN:NEW");
menuitem = gtk_image_menu_item_new ();
setup_menuitem (menuitem,
gtk_image_new_from_stock (GTK_STOCK_ADD, GTK_ICON_SIZE_MENU),
......
......@@ -1148,13 +1148,7 @@ drop_internal_applet (PanelWidget *panel, int pos, const char *applet_type,
} else if(strcmp(applet_type,"STATUS:TRY")==0) {
load_status_applet(panel, pos, TRUE);
} else if(strcmp(applet_type,"RUN:NEW")==0) {
load_run_applet(panel, pos, TRUE);
} else if (sscanf (applet_type, "RUN:%d", &applet_num) == 1) {
load_run_applet(panel, pos, TRUE);
remove_applet = TRUE;
}
}
if (remove_applet &&
action == GDK_ACTION_MOVE) {
......
......@@ -968,9 +968,6 @@ session_init_user_applets (void)
} else if (strcmp (applet_name, STATUS_ID) == 0) {
load_status_applet (panel, pos, TRUE);
} else if (strcmp (applet_name, RUN_ID) == 0) {
load_run_applet (panel, pos, TRUE);
} else if (strcmp (applet_name, SWALLOW_ID) == 0) {
char *path = conditional_get_string ("execpath",
NULL, NULL);
......@@ -1452,7 +1449,7 @@ session_read_global_config (void)
gconf_value_get_bool (value);
else if (!strcmp (key, "auto-update-menus"))
g_warning ("Gman: what's this '%s' ?", key);
g_warning ("Gman: what's this '%s' ?\nmarkmc: something that's probably not needed", key);
else if (!strcmp (key, "highlight-launchers-on-mouseover"))
global_config.highlight_when_over =
......
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