~ubuntu-branches/ubuntu/raring/gedit-plugins/raring-proposed

« back to all changes in this revision

Viewing changes to plugins/drawspaces/gedit-drawspaces-plugin.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-06-17 14:15:25 UTC
  • mto: (7.2.1 sid) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 32.
  • Revision ID: james.westby@ubuntu.com-20090617141525-cwx8ozzpkpybugo4
Tags: upstream-2.26.2
ImportĀ upstreamĀ versionĀ 2.26.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <gedit/gedit-window.h>
29
29
#include <gedit/gedit-view.h>
30
30
#include <gedit/gedit-tab.h>
 
31
#include <gedit/gedit-utils.h>
31
32
 
32
33
#include <gconf/gconf-client.h>
33
34
 
316
317
impl_activate (GeditPlugin *plugin,
317
318
               GeditWindow *window)
318
319
{
319
 
        GList *views, *l;
320
 
        GeditDrawspacesPlugin *ds_plugin = GEDIT_DRAWSPACES_PLUGIN (plugin);
 
320
        GeditDrawspacesPlugin *ds_plugin;
321
321
        GtkUIManager *manager;
322
322
        GError *error = NULL;
323
323
        GtkAction *action;
326
326
 
327
327
        gedit_debug (DEBUG_PLUGINS);
328
328
 
 
329
        ds_plugin = GEDIT_DRAWSPACES_PLUGIN (plugin);
 
330
 
329
331
        data = g_slice_new (WindowData);
330
332
        action_data = g_slice_new (ActionData);
331
333
        
398
400
        ds_plugin->priv->flags = 0;
399
401
        draw_spaces (ds_plugin);
400
402
        
401
 
        g_signal_handlers_disconnect_by_func (window, tab_added_cb, NULL);
 
403
        g_signal_handlers_disconnect_by_func (window, tab_added_cb, ds_plugin);
402
404
        
403
405
        gtk_ui_manager_remove_ui (manager, data->ui_id);
404
406
        gtk_ui_manager_remove_action_group (manager, data->action_group);