+static GtkMenu*
+anjuta_docman_create_tab_popup (AnjutaDocman *docman)
+{
+       
+       GtkMenu *menu;
+       AnjutaUI *ui;
+       gint n, i;
+       GtkMenuItem *closeothers;
+       /*GENERATE A MENU*/
+
+       n = gtk_notebook_get_n_pages (docman->priv->notebook);
+       menu = gtk_menu_new ();
+       
+       for(i = 0; i < n; i++)
+       {
+
+               AnjutaDocmanPage *page;
+               const gchar *tab_name;
+               GtkWidget *menuitem;
+               
+               page = anjuta_docman_get_nth_page (docman, i);
+               tab_name = gtk_label_get_label (GTK_LABEL (page->label));
+                               printer(tab_name);
+               menuitem = gtk_menu_item_new_with_label(tab_name);
+               g_signal_connect(G_OBJECT(menuitem), "activate", G_CALLBACK(on_n
+               gtk_menu_shell_append (GTK_MENU (menu), menuitem);
+               gtk_widget_show (menuitem);
+
+               
+       }
+       gtk_menu_shell_append (GTK_MENU (menu), closeothers);
+       g_signal_connect (G_OBJECT (closeothers, "activate", G_CALLBACK(on_close
+       gtk_widget_show (closeothers);
+       return GTK_MENU (menu);
+}

