#81 Breaks Show/Hide tabbar plugin


On my Jaunty install with plugin version 0.2 RC, the Show/Hide tabbar plugin doesn't work. The menu item appears but checking/unchecking has no affect--the tabbar is always visible and cannot be hidden.

With the latex plugin disabled, the show/hide tabbar plugin works.

I might also mention that none of the building features worked (only tested on file names with spaces), but that everything else I tried does (including e.g. the outline side pane).


  • Hi,

    This is due to the way the show/hide tabbar plugin tries to find the widget containing the tabs, which doesn't work anymore when gedit-latex-plugin adds a toolbar to the window.

    A solution is to recompile gedit-plugins (the package containing the Show/Hide Tabbar plugin) after a modification: replace line 124 in showtabbar/gedit-showtabbar-plugin.c

    container = GTK_CONTAINER (g_list_nth_data (list, 2)); /* HPaned */

    by something like:

    container = NULL;
    gint n, i;
    n = g_list_length(list);
    for (i=0; i<n; i++)
    if (GTK_IS_HPANED (g_list_nth_data (list, i)))
    container = GTK_CONTAINER (g_list_nth_data (list, i)); /* HPaned */
    if (container == NULL)
    return NULL;

    I can send a modified plugin library (libshowtabbar.so) compiled for Ubuntu 9.10 by email if someone needs it.