Index: panel-recent.c
===================================================================
RCS file: /cvs/gnome/gnome-panel/gnome-panel/panel-recent.c,v
retrieving revision 1.14
diff -u -r1.14 panel-recent.c
--- panel-recent.c	4 Feb 2004 13:05:46 -0000	1.14
+++ panel-recent.c	17 Jun 2004 03:03:56 -0000
@@ -160,6 +160,15 @@
 }
 
 void
+panel_recent_clear_documents_menu ()
+{
+	EggRecentModel   *model;
+	model = egg_recent_model_new (EGG_RECENT_MODEL_SORT_MRU);
+	egg_recent_model_clear (model);
+	g_object_unref (G_OBJECT (model));
+}
+
+void
 panel_recent_append_documents_menu (GtkWidget *top_menu)
 {
 	GtkWidget        *menu;
Index: panel-recent.h
===================================================================
RCS file: /cvs/gnome/gnome-panel/gnome-panel/panel-recent.h,v
retrieving revision 1.1
diff -u -r1.1 panel-recent.h
--- panel-recent.h	10 Oct 2002 18:23:52 -0000	1.1
+++ panel-recent.h	17 Jun 2004 03:03:56 -0000
@@ -27,4 +27,7 @@
 
 void panel_recent_append_documents_menu (GtkWidget *menu);
 
+void
+panel_recent_clear_documents_menu ();
+
 #endif /* __PANEL_RECENT_H__ */
Index: panel-properties-dialog.glade
===================================================================
RCS file: /cvs/gnome/gnome-panel/gnome-panel/panel-properties-dialog.glade,v
retrieving revision 1.14
diff -u -r1.14 panel-properties-dialog.glade
--- panel-properties-dialog.glade	11 Feb 2004 15:33:49 -0000	1.14
+++ panel-properties-dialog.glade	17 Jun 2004 03:03:58 -0000
@@ -12,6 +12,11 @@
   <property name="modal">False</property>
   <property name="resizable">False</property>
   <property name="destroy_with_parent">False</property>
+  <property name="decorated">True</property>
+  <property name="skip_taskbar_hint">False</property>
+  <property name="skip_pager_hint">False</property>
+  <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
+  <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
   <property name="has_separator">False</property>
 
   <child internal-child="vbox">
@@ -33,6 +38,7 @@
 	      <property name="label">gtk-help</property>
 	      <property name="use_stock">True</property>
 	      <property name="relief">GTK_RELIEF_NORMAL</property>
+	      <property name="focus_on_click">True</property>
 	      <property name="response_id">-11</property>
 	    </widget>
 	  </child>
@@ -46,6 +52,7 @@
 	      <property name="label">gtk-close</property>
 	      <property name="use_stock">True</property>
 	      <property name="relief">GTK_RELIEF_NORMAL</property>
+	      <property name="focus_on_click">True</property>
 	      <property name="response_id">-7</property>
 	    </widget>
 	  </child>
@@ -350,6 +357,10 @@
 		      <property name="yalign">0.5</property>
 		      <property name="xscale">0</property>
 		      <property name="yscale">1</property>
+		      <property name="top_padding">0</property>
+		      <property name="bottom_padding">0</property>
+		      <property name="left_padding">0</property>
+		      <property name="right_padding">0</property>
 
 		      <child>
 			<widget class="GnomeIconEntry" id="icon_entry">
@@ -406,6 +417,7 @@
 		  <property name="label" translatable="yes">E_xpand</property>
 		  <property name="use_underline">True</property>
 		  <property name="relief">GTK_RELIEF_NORMAL</property>
+		  <property name="focus_on_click">True</property>
 		  <property name="active">False</property>
 		  <property name="inconsistent">False</property>
 		  <property name="draw_indicator">True</property>
@@ -424,6 +436,7 @@
 		  <property name="label" translatable="yes">_Autohide</property>
 		  <property name="use_underline">True</property>
 		  <property name="relief">GTK_RELIEF_NORMAL</property>
+		  <property name="focus_on_click">True</property>
 		  <property name="active">False</property>
 		  <property name="inconsistent">False</property>
 		  <property name="draw_indicator">True</property>
@@ -448,6 +461,7 @@
 		      <property name="label" translatable="yes">Show hide _buttons</property>
 		      <property name="use_underline">True</property>
 		      <property name="relief">GTK_RELIEF_NORMAL</property>
+		      <property name="focus_on_click">True</property>
 		      <property name="active">False</property>
 		      <property name="inconsistent">False</property>
 		      <property name="draw_indicator">True</property>
@@ -493,6 +507,7 @@
 			  <property name="label" translatable="yes">Arro_ws on hide buttons</property>
 			  <property name="use_underline">True</property>
 			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
 			  <property name="active">False</property>
 			  <property name="inconsistent">False</property>
 			  <property name="draw_indicator">True</property>
@@ -517,6 +532,25 @@
 		  <property name="fill">False</property>
 		</packing>
 	      </child>
+
+	      <child>
+		<widget class="GtkButton" id="clr_recent_docs_button">
+		  <property name="height_request">25</property>
+		  <property name="visible">True</property>
+		  <property name="can_default">True</property>
+		  <property name="can_focus">True</property>
+		  <property name="has_focus">True</property>
+		  <property name="label" translatable="yes">Clear _Recent Documents</property>
+		  <property name="use_underline">True</property>
+		  <property name="relief">GTK_RELIEF_NORMAL</property>
+		  <property name="focus_on_click">True</property>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">False</property>
+		</packing>
+	      </child>
 	    </widget>
 	    <packing>
 	      <property name="tab_expand">False</property>
@@ -607,6 +641,7 @@
 		  <property name="label" translatable="yes">_None (use system theme)</property>
 		  <property name="use_underline">True</property>
 		  <property name="relief">GTK_RELIEF_NORMAL</property>
+		  <property name="focus_on_click">True</property>
 		  <property name="active">False</property>
 		  <property name="inconsistent">False</property>
 		  <property name="draw_indicator">True</property>
@@ -631,6 +666,7 @@
 		      <property name="label" translatable="yes">Solid c_olor</property>
 		      <property name="use_underline">True</property>
 		      <property name="relief">GTK_RELIEF_NORMAL</property>
+		      <property name="focus_on_click">True</property>
 		      <property name="active">False</property>
 		      <property name="inconsistent">False</property>
 		      <property name="draw_indicator">True</property>
@@ -798,6 +834,7 @@
 			  <property name="dither">True</property>
 			  <property name="use_alpha">False</property>
 			  <property name="title" translatable="yes">Pick a color</property>
+			  <property name="focus_on_click">True</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">1</property>
@@ -861,6 +898,7 @@
 		      <property name="label" translatable="yes">Background _image:</property>
 		      <property name="use_underline">True</property>
 		      <property name="relief">GTK_RELIEF_NORMAL</property>
+		      <property name="focus_on_click">True</property>
 		      <property name="active">False</property>
 		      <property name="inconsistent">False</property>
 		      <property name="draw_indicator">True</property>
@@ -987,6 +1025,11 @@
   <property name="modal">False</property>
   <property name="resizable">False</property>
   <property name="destroy_with_parent">False</property>
+  <property name="decorated">True</property>
+  <property name="skip_taskbar_hint">False</property>
+  <property name="skip_pager_hint">False</property>
+  <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
+  <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
   <property name="has_separator">False</property>
 
   <child internal-child="vbox">
@@ -1008,6 +1051,7 @@
 	      <property name="label">gtk-help</property>
 	      <property name="use_stock">True</property>
 	      <property name="relief">GTK_RELIEF_NORMAL</property>
+	      <property name="focus_on_click">True</property>
 	      <property name="response_id">-11</property>
 	    </widget>
 	  </child>
@@ -1020,6 +1064,7 @@
 	      <property name="label">gtk-close</property>
 	      <property name="use_stock">True</property>
 	      <property name="relief">GTK_RELIEF_NORMAL</property>
+	      <property name="focus_on_click">True</property>
 	      <property name="response_id">-7</property>
 	    </widget>
 	  </child>
@@ -1045,6 +1090,7 @@
 	      <property name="max_saved">10</property>
 	      <property name="modal">False</property>
 	      <property name="do_preview">False</property>
+	      <property name="use_filechooser">False</property>
 
 	      <child internal-child="entry">
 		<widget class="GtkEntry" id="combo-entry1">
@@ -1080,6 +1126,7 @@
 		  <property name="label" translatable="yes">_Tile</property>
 		  <property name="use_underline">True</property>
 		  <property name="relief">GTK_RELIEF_NORMAL</property>
+		  <property name="focus_on_click">True</property>
 		  <property name="active">False</property>
 		  <property name="inconsistent">False</property>
 		  <property name="draw_indicator">True</property>
@@ -1098,6 +1145,7 @@
 		  <property name="label" translatable="yes">_Scale</property>
 		  <property name="use_underline">True</property>
 		  <property name="relief">GTK_RELIEF_NORMAL</property>
+		  <property name="focus_on_click">True</property>
 		  <property name="active">False</property>
 		  <property name="inconsistent">False</property>
 		  <property name="draw_indicator">True</property>
@@ -1117,6 +1165,7 @@
 		  <property name="label" translatable="yes">St_retch</property>
 		  <property name="use_underline">True</property>
 		  <property name="relief">GTK_RELIEF_NORMAL</property>
+		  <property name="focus_on_click">True</property>
 		  <property name="active">False</property>
 		  <property name="inconsistent">False</property>
 		  <property name="draw_indicator">True</property>
@@ -1143,6 +1192,7 @@
 	      <property name="label" translatable="yes">Rotate image when panel is _vertical</property>
 	      <property name="use_underline">True</property>
 	      <property name="relief">GTK_RELIEF_NORMAL</property>
+	      <property name="focus_on_click">True</property>
 	      <property name="active">False</property>
 	      <property name="inconsistent">False</property>
 	      <property name="draw_indicator">True</property>
Index: panel-properties-dialog.c
===================================================================
RCS file: /cvs/gnome/gnome-panel/gnome-panel/panel-properties-dialog.c,v
retrieving revision 1.21
diff -u -r1.21 panel-properties-dialog.c
--- panel-properties-dialog.c	24 Mar 2004 07:21:34 -0000	1.21
+++ panel-properties-dialog.c	17 Jun 2004 03:03:59 -0000
@@ -36,6 +36,7 @@
 #include "panel-gconf.h"
 #include "panel-util.h"
 #include "panel-globals.h"
+#include "panel-recent.h"
 
 typedef struct {
 	PanelToplevel *toplevel;
@@ -70,6 +71,7 @@
 	GtkWidget     *opacity_scale;
 	GtkWidget     *opacity_label;
 	GtkWidget     *opacity_legend;
+	GtkWidget     *clr_recent_docs_button;
 
 	GtkWidget     *writability_warn_general;
 	GtkWidget     *writability_warn_background;
@@ -959,6 +961,9 @@
 	g_signal_connect_swapped (dialog->hidebuttons_toggle, "toggled",
 				  G_CALLBACK (panel_properties_update_arrows_toggle_visible),
 				  dialog);
+
+	dialog->clr_recent_docs_button = glade_xml_get_widget (gui, "clr_recent_docs_button");
+	g_signal_connect (dialog->clr_recent_docs_button, "clicked", G_CALLBACK (panel_recent_clear_documents_menu), NULL);
 
 	dialog->toplevel_notify =
 		panel_profile_toplevel_notify_add (
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-panel/gnome-panel/ChangeLog,v
retrieving revision 1.2375
diff -u -r1.2375 ChangeLog
--- ChangeLog	14 May 2004 07:31:45 -0000	1.2375
+++ ChangeLog	17 Jun 2004 03:04:10 -0000
@@ -1,3 +1,7 @@
+2004-06-16 Sagar Rastogi  <rastogi@students.iiit.net>
+
+	* panel-recent.c panel-recent.h panel-properties-dialog.c panel-properties-dialog.h panel-properties-dialog.glade egg-recent-model.c egg-recent-model.h: Added a button to clear the 'recent documents' menu. Enhancement #144395.
+
 2004-05-14  Padraig O'Briain  <padraig.obriain@sun.com>
 
 	* gnome-panel-screenshot.c: Use idle handler instead of sleep to 
