~mitya57/ubuntu/precise/nautilus/desktop-window-fixes

« back to all changes in this revision

Viewing changes to src/nautilus-location-entry.c

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2009-09-23 20:11:11 UTC
  • mto: (1.2.5 upstream) (2.4.1 sid)
  • mto: This revision was merged to the branch mainline in revision 138.
  • Revision ID: james.westby@ubuntu.com-20090923201111-r4e2b6x5biik0ldh
Tags: upstream-2.28.0
ImportĀ upstreamĀ versionĀ 2.28.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
        entry->details->has_special_text = FALSE;
283
283
}
284
284
 
 
285
static void
 
286
nautilus_location_entry_icon_release (GtkEntry *gentry,
 
287
                                      GtkEntryIconPosition position,
 
288
                                      GdkEvent *event,
 
289
                                      gpointer unused)
 
290
{
 
291
        gtk_entry_set_text (gentry, "");
 
292
}
 
293
 
285
294
static gboolean
286
295
nautilus_location_entry_focus_in (GtkWidget     *widget,
287
296
                                  GdkEventFocus *event)
322
331
 
323
332
        entry->details->completer = g_filename_completer_new ();
324
333
        g_filename_completer_set_dirs_only (entry->details->completer, TRUE);
 
334
 
 
335
        gtk_entry_set_icon_from_stock (GTK_ENTRY (entry), GTK_ENTRY_ICON_SECONDARY,
 
336
                                       GTK_STOCK_CLEAR);
325
337
        
326
338
        nautilus_entry_set_special_tab_handling (NAUTILUS_ENTRY (entry), TRUE);
327
339
 
331
343
        g_signal_connect (entry, "notify::text",
332
344
                          G_CALLBACK (nautilus_location_entry_text_changed), NULL);
333
345
 
 
346
        g_signal_connect (entry, "icon-release",
 
347
                          G_CALLBACK (nautilus_location_entry_icon_release), NULL);
 
348
 
334
349
        g_signal_connect (entry->details->completer, "got_completion_data",
335
350
                          G_CALLBACK (got_completion_data_callback), entry);
336
351
}