Thank you Fabounet I see what you mean.

By un-referencing the subdock and setting it to null at line 149 in the
file applet-init.c the expected behaviour is achieved.

The following lines are copied from lines 165 and 166 and put in at line
149

                        gldi_object_unref (GLDI_OBJECT(myIcon->pSubDock));
                        myIcon->pSubDock = NULL;

After compiling and running the Folders applet now shows the
configuration message when the folder path is emptied and the applet is
clicked. It no longer shows a subdock when the path is empty.

** Attachment added: "applet-init.c"
   
https://bugs.launchpad.net/cairo-dock-plug-ins/+bug/1385907/+attachment/4247763/+files/applet-init.c

-- 
You received this bug notification because you are a member of Cairo-
Dock Devs, which is subscribed to Cairo-Dock Plug-ins.
https://bugs.launchpad.net/bugs/1385907

Title:
  Folders Applet - panel not resizing on deletion of path

Status in Cairo-Dock: Plug-ins:
  New

Bug description:
  ============================================================================
          Cairo-Dock version : 3.4.0
          Compiled date : Oct 17 2014 09:05:35
          Built with GTK : 3.14
          Running with OpenGL: 1
   ============================================================================
  This issue was found in KDE and it occurs regardless of whether KDE 
Integration is enabled.

  STEPS TO RE-CREATE
  1. Configure the Folders Applet by adding a path with a number of different 
folders.
  2. Click on Folders Applet - panel should be sized according to number of 
folders.
  3. Configure the Folders Applet and blank out the path previously added - 
then click Apply.
  4. Click on Folders Applet - large blank panel is displayed to user (see 
screenshot) - expected behaviour is that no panel should be displayed to user.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cairo-dock-plug-ins/+bug/1385907/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~cairo-dock-team
Post to     : cairo-dock-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~cairo-dock-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to