~ubuntu-branches/ubuntu/maverick/conglomerate/maverick

« back to all changes in this revision

Viewing changes to src/cong-file-open.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2005-11-08 05:07:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051108050706-bcg60nwqf1z3w0d6
Tags: 0.9.1-1ubuntu1
* Resynchronise with Debian (Closes: #4397).
  - Thanks, Jordan Mantha.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
#include <unistd.h> /* for chdir */
14
14
#include "cong-vfs.h"
15
15
#include "cong-file-selection.h"
 
16
#include "egg-recent-model.h"
16
17
 
17
18
/* Data and callback for handling the forced loading of a file, autogenerating a dispspec: */
18
19
struct force_dialog
197
198
                g_assert (primary_window);
198
199
                cong_primary_window_action_set_sensitive (primary_window, "Save", FALSE);
199
200
        }
 
201
        
 
202
        /* Add recent entry */
 
203
        {
 
204
                CongPrimaryWindow *primary_window = cong_document_get_primary_window(cong_doc);
 
205
                EggRecentItem *item;
 
206
 
 
207
                item = egg_recent_item_new_from_uri (doc_name);
 
208
                egg_recent_item_add_group (item, "Conglomerate");
 
209
                egg_recent_model_add_full (primary_window->recent_model, item);
 
210
        }
200
211
 
201
212
        g_object_unref( G_OBJECT(cong_doc));
202
 
 
203
213
}
204
214
 
205
215
/**