#include <stdio.h>
#include <gtk/gtk.h>
#include <liberipc/eripc.h>
#include "logging.h"
#include "control.h"
#include "displayUpdate.h"
#include "view.h"
Go to the source code of this file.
Functions | |
| shareMgr_t * | ctrlInit (GtkWidget *topLevelWindow) |
| void | ctrlDestroy (shareMgr_t *theShareMgr) |
Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.
<File description>="">
Definition in file control.c.
| void ctrlDestroy | ( | shareMgr_t * | shMgr | ) |
clean up allocated memory
| dlMgr | reference downloadMgrdata |
Definition at line 61 of file control.c.
00062 { 00063 g_return_if_fail(theShareMgr != NULL); 00064 00065 DL_WARNPRINTF("Clean up wat needs to be cleared"); 00066 00067 g_free(theShareMgr); 00068 }
| shareMgr_t* ctrlInit | ( | GtkWidget * | topLevelWindow | ) |
Init download manager data : - init screen layout
| window | reference to the top level window |
Definition at line 44 of file control.c.
00045 { 00046 shareMgr_t *theShareMgr = NULL; 00047 00048 // => only request a refresh on the background expose event 00049 display_update_increase_level(VIEW_WINDOW_EXPOSE_LEVEL); 00050 00051 // create one theShareMgr struct and fill it with zeros 00052 theShareMgr = g_new0(shareMgr_t, 1); 00053 theShareMgr->topLevelWindow = topLevelWindow; 00054 theShareMgr->returnVal = DL_OK; 00055 00056 viewInit(topLevelWindow); 00057 viewSetText(); 00058 return theShareMgr; 00059 }

1.5.6