~ubuntu-branches/ubuntu/trusty/anjuta/trusty

« back to all changes in this revision

Viewing changes to plugins/sourceview/sourceview.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-08-17 23:48:26 UTC
  • mfrom: (1.1.50)
  • Revision ID: package-import@ubuntu.com-20120817234826-fvk3rfp6nmfaqi9p
Tags: 2:3.5.5-0ubuntu1
* New upstream release.
* debian/control.in:
  - Bump vala dependency to 0.18 series
  - Drop graphviz from build-depends
* debian/watch: Watch for unstable releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <libanjuta/anjuta-preferences.h>
28
28
#include <libanjuta/anjuta-encodings.h>
29
29
#include <libanjuta/anjuta-shell.h>
 
30
#include <libanjuta/anjuta-language-provider.h>
30
31
#include <libanjuta/interfaces/ianjuta-file.h>
31
32
#include <libanjuta/interfaces/ianjuta-file-savable.h>
32
33
#include <libanjuta/interfaces/ianjuta-markable.h>
43
44
#include <libanjuta/interfaces/ianjuta-editor-search.h>
44
45
#include <libanjuta/interfaces/ianjuta-editor-hover.h>
45
46
#include <libanjuta/interfaces/ianjuta-editor-glade-signal.h>
 
47
#include <libanjuta/interfaces/ianjuta-language-provider.h>
46
48
#include <libanjuta/interfaces/ianjuta-provider.h>
47
49
 
48
50
#include <gtksourceview/gtksourceview.h>
2315
2317
iassist_proposals(IAnjutaEditorAssist* iassist,
2316
2318
                  IAnjutaProvider* provider,
2317
2319
                  GList* proposals,
 
2320
                  const gchar* pre_word,
2318
2321
                  gboolean finished,
2319
2322
                  GError** e)
2320
2323
{
 
2324
        /* Hide if the only suggetions is exactly the typed word */
 
2325
        if (pre_word && proposals && g_list_length (proposals) == 1)
 
2326
        {
 
2327
                IAnjutaEditorAssistProposal* proposal = proposals->data;
 
2328
                AnjutaLanguageProposalData* data = proposal->data;
 
2329
                if (g_str_equal (pre_word, data->name))
 
2330
                        proposals = NULL;
 
2331
        }
 
2332
        
2321
2333
        Sourceview* sv = ANJUTA_SOURCEVIEW(iassist);
2322
2334
        GtkSourceCompletion* completion = gtk_source_view_get_completion(GTK_SOURCE_VIEW(sv->priv->view));
2323
2335
        GList* node;