Changeset 186 for trunk/gui/class_c/nomfolderwindow.c
- Timestamp:
- Jan 13, 2007, 12:36:01 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/class_c/nomfolderwindow.c
r163 r186 44 44 #include <gtk/gtk.h> 45 45 #include "nomguitk.h" 46 #include "nomwindow.h" 47 #include "desktoptypes.h" 48 46 49 #include "nomfolderwindow.ih" 47 48 #warning !!!!! nomIsObj() must be globaly defined !!!!!49 #define nomIsObj(a) ((a)!= 0)50 51 50 52 51 NOM_Scope PGtkWidget NOMLINK impl_NOMFolderWindow_queryContainerHandle(NOMFolderWindow* nomSelf, CORBA_Environment *ev) … … 70 69 NOMFolderWindowData* nomThis=NOMFolderWindowGetData(nomSelf); 71 70 72 if(!nomIsObj( pWPFolderObject))71 if(!nomIsObj((NOMObject*)pWPFolderObject)) 73 72 return; 74 73 … … 83 82 } 84 83 84 #if 0 85 85 static void 86 86 itemActivated (GtkIconView *icon_view, … … 90 90 DosBeep(1500, 100); 91 91 } 92 #endif 92 93 93 94 /* … … 164 165 } 165 166 166 167 #if 0 167 168 static gboolean 168 169 handleEvent (GtkWidget *widget, GdkEventButton *event, gpointer user_data) 169 170 { 170 DosBeep(500 0, 100);171 DosBeep(500, 100); 171 172 172 173 return FALSE; 173 174 } 174 175 175 extern gpointer *pGlobalMemInExe; 176 static void 177 itemActivated (GtkIconView *widget, 178 GtkTreePath *treePath, 179 gpointer user_data) 180 { 181 PNOMFolderWindow pWindow; 182 // GtkTreePath* treePath; 183 184 pWindow=(NOMFolderWindow*)user_data; 185 186 g_message("%s: %x %s", __FUNCTION__, treePath , gtk_tree_path_to_string(treePath)); 187 188 return; 189 } 190 #endif 191 176 192 177 193 NOM_Scope void NOMLINK impl_NOMFolderWindow_nomInit(NOMFolderWindow* nomSelf, CORBA_Environment *ev) … … 249 265 gtk_icon_view_set_selection_mode (GTK_ICON_VIEW (icon_view), 250 266 GTK_SELECTION_MULTIPLE); 267 #if 0 251 268 /* Connect to the "item_activated" signal */ 252 269 g_signal_connect (icon_view, "item-activated", 253 270 G_CALLBACK (itemActivated), nomSelf); 271 #endif 254 272 //#endif 255 273 … … 276 294 gtk_widget_grab_focus (icon_view); 277 295 278 g_signal_connect (GTK_WIDGET(window), "size-request",279 296 // g_signal_connect (GTK_WIDGET(window), "size-request", 297 // G_CALLBACK (handleEvent), nomSelf); 280 298 281 299 NOMFolderWindow_setWindowHandle(nomSelf, window, NULLHANDLE);
Note:
See TracChangeset
for help on using the changeset viewer.