Changeset 247
- Timestamp:
- Mar 10, 2007, 6:58:41 PM (18 years ago)
- Location:
- trunk/desktop
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/desktop/class_c/wpfolder.c
r245 r247 635 635 636 636 /* Save a pointer to the desktop folder object */ 637 WPFolderWindow_wpSet WPObject(wpFldrWindow, (WPObject*)nomSelf, NULLHANDLE);637 WPFolderWindow_wpSetObject(wpFldrWindow, (WPObject*)nomSelf, NULLHANDLE); 638 638 639 639 /* Connect to the "item_activated" signal */ -
trunk/desktop/class_c/wpfolderwindow.c
r246 r247 127 127 /* Click on white space */ 128 128 WPFolder* wpFolder; 129 wpFolder=(WPFolder*)WPFolderWindow_wpQuery WPObject(pWindow, NULLHANDLE);129 wpFolder=(WPFolder*)WPFolderWindow_wpQueryObject(pWindow, NULLHANDLE); 130 130 TST_OBJECT(wpFolder); 131 131 … … 216 216 return FALSE; 217 217 218 wpObject=WPFolderWindow_wpQuery WPObject(pWindow, NULLHANDLE);218 wpObject=WPFolderWindow_wpQueryObject(pWindow, NULLHANDLE); 219 219 220 220 if(!nomIsObj(wpObject)) … … 341 341 /* Add the object to the list of items for this drag */ 342 342 NOMDragInfo_addWPObjectToItemList(nomDragInfo, wpObject, 343 (PWPFolder)WPFolderWindow_wpQuery WPObject(wpFolderWindow, NULLHANDLE),343 (PWPFolder)WPFolderWindow_wpQueryObject(wpFolderWindow, NULLHANDLE), 344 344 widget, NULLHANDLE); 345 345 } … … 409 409 return FALSE; 410 410 411 wpObject=WPFolderWindow_wpQuery WPObject(pWindow, NULLHANDLE);411 wpObject=WPFolderWindow_wpQueryObject(pWindow, NULLHANDLE); 412 412 413 413 if(!nomIsObj(wpObject)) … … 652 652 653 653 #if 0 654 /* Handle mouse buttons */655 g_signal_connect (GTK_WIDGET(icon_view), "button-press-event",656 G_CALLBACK (fldr_handleButtonEvent), nomSelf);657 g_signal_connect (GTK_WIDGET(icon_view), "button-release-event",658 G_CALLBACK (fldr_handleButtonEvent), nomSelf);659 660 /* Handle folder DnD */661 g_signal_connect(GTK_WIDGET(icon_view), "drag-begin",662 G_CALLBACK(fldrWindowHandleDragBegin), nomSelf);663 g_signal_connect(GTK_WIDGET(icon_view), "drag-motion",664 G_CALLBACK(fldrWindowHandleDragMotion), nomSelf);665 g_signal_connect(GTK_WIDGET(icon_view), "drag-drop",666 G_CALLBACK(fldrWindowHandleDragDrop), nomSelf);667 g_signal_connect(GTK_WIDGET(icon_view), "drag_data_received",668 G_CALLBACK(fldrWindowHandleDragDataReceived), nomSelf);669 g_signal_connect(GTK_WIDGET(icon_view), "drag_data_get",670 G_CALLBACK(fldrWindowHandleDragDataGet), nomSelf);671 672 /* Prepare drag and drop */673 gtk_drag_source_set(GTK_WIDGET(icon_view), GDK_BUTTON3_MASK, targetEntries,674 G_N_ELEMENTS(targetEntries),675 GDK_ACTION_DEFAULT|GDK_ACTION_LINK|GDK_ACTION_COPY|GDK_ACTION_MOVE);676 gtk_drag_dest_set(GTK_WIDGET(icon_view), GTK_DEST_DEFAULT_ALL, targetEntries, 1,677 GDK_ACTION_DEFAULT|GDK_ACTION_LINK|GDK_ACTION_COPY|GDK_ACTION_MOVE);678 #endif679 #if 0680 654 /* Connect to the "clicked" signal of the "Up" tool button */ 681 655 g_signal_connect (up_button, "clicked", … … 683 657 #endif 684 658 659 /* Prepare drag and drop */ 685 660 _wpConnectDefaultSignalHandlers(nomSelf, icon_view, NULLHANDLE); 686 661 WPFolderWindow_wpSetContainerHandle(nomSelf, icon_view, NULLHANDLE); -
trunk/desktop/class_c/wpwindow.c
r237 r247 57 57 info. 58 58 59 \sa wpQuery WPObject(), wpSetWPObject()59 \sa wpQueryObject(), wpSetObject() 60 60 */ 61 NOM_Scope void NOMLINK impl_WPWindow_wpSet WPObject(WPWindow* nomSelf, const PWPObject wpObject, CORBA_Environment *ev)61 NOM_Scope void NOMLINK impl_WPWindow_wpSetObject(WPWindow* nomSelf, const PWPObject wpObject, CORBA_Environment *ev) 62 62 { 63 63 WPWindowData* nomThis=WPWindowGetData(nomSelf); … … 71 71 \sa wpQueryWPObject(), wpSetWPObject() 72 72 */ 73 NOM_Scope PWPObject NOMLINK impl_WPWindow_wpQuery WPObject(WPWindow* nomSelf, CORBA_Environment *ev)73 NOM_Scope PWPObject NOMLINK impl_WPWindow_wpQueryObject(WPWindow* nomSelf, CORBA_Environment *ev) 74 74 { 75 75 WPWindowData* nomThis=WPWindowGetData(nomSelf); -
trunk/desktop/dox/examples/wpsetwpobject.c
r237 r247 1 1 /** 2 This method creates thefolder window it doesn't query any files or creates2 This method creates a folder window it doesn't query any files or creates 3 3 models and stuff. 4 4 */ … … 15 15 16 16 /* Save a pointer to the desktop folder object */ 17 WPFolderWindow_wpSet WPObject(wpFldrWindow, (WPObject*)nomSelf, NULLHANDLE);17 WPFolderWindow_wpSetObject(wpFldrWindow, (WPObject*)nomSelf, NULLHANDLE); 18 18 19 19 /* Connect to the "item_activated" signal */ -
trunk/desktop/idl/wpwindow.idl
r245 r247 79 79 g_object_set_data(G_OBJECT(window), NOMOBJECT_KEY_STRING, nomSelf); 80 80 \endcode 81 That callis used internally by the WPWindow class to connect a WPWindow instance81 That function is used internally by the WPWindow class to connect a WPWindow instance 82 82 (nomSelf in this call) with a GTK window. 83 83 … … 89 89 \par Example: 90 90 The follwing code is a method implementation of class WPFolder. It creates a new 91 folder window (of class WPFolderWindow) and uses wpSet WPObject() to connect the folder91 folder window (of class WPFolderWindow) and uses wpSetObject() to connect the folder 92 92 object (nomSelf) with the folder window. 93 93 \include wpsetwpobject.c 94 94 95 \sa wpQuery WPObject()95 \sa wpQueryObject() 96 96 */ 97 void wpSet WPObject(in PWPObject wpObject);97 void wpSetObject(in PWPObject wpObject); 98 98 99 99 /** … … 104 104 g_object_get_data(G_OBJECT(window), NOMOBJECT_KEY_STRING); 105 105 \endcode 106 Using that callone queries the window object (\b not the desktop object) from106 Using that function one queries the window object (\b not the desktop object) from 107 107 a GTK toplevel window. 108 108 … … 110 110 This method is usually not overriden. 111 111 112 \sa wpSet WPObject()112 \sa wpSetObject() 113 113 */ 114 PWPObject wpQuery WPObject();114 PWPObject wpQueryObject(); 115 115 void wpSetWindowTitle(in PNOMString newTitle); 116 116 NOMINSTANCEVAR(PWPObject wpObject);
Note:
See TracChangeset
for help on using the changeset viewer.