00001 /* 00002 * This file is part of pcshareMgr. 00003 * 00004 * pcshareMgr is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * pcshareMgr is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00031 /* downloadMgr - A GTK based application on the eReader platform 00032 * 00033 */ 00034 00035 #include <stdio.h> 00036 #include <gtk/gtk.h> 00037 #include <liberipc/eripc.h> 00038 00039 #include "logging.h" 00040 #include "control.h" 00041 #include "displayUpdate.h" 00042 #include "view.h" 00043 00044 shareMgr_t *ctrlInit(GtkWidget * topLevelWindow) 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 } 00060 00061 void ctrlDestroy(shareMgr_t * theShareMgr) 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 }
1.5.6