Changeset 247


Ignore:
Timestamp:
Mar 10, 2007, 6:58:41 PM (18 years ago)
Author:
cinc
Message:

Renamed wpSetWPObject()/wpQueryWPObject() of class WPWindow to wpSetObject()/wpQueryObject() for consistency.

Location:
trunk/desktop
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/desktop/class_c/wpfolder.c

    r245 r247  
    635635
    636636  /* Save a pointer to the desktop folder object */
    637   WPFolderWindow_wpSetWPObject(wpFldrWindow, (WPObject*)nomSelf, NULLHANDLE);
     637  WPFolderWindow_wpSetObject(wpFldrWindow, (WPObject*)nomSelf, NULLHANDLE);
    638638
    639639  /* Connect to the "item_activated" signal */
  • trunk/desktop/class_c/wpfolderwindow.c

    r246 r247  
    127127            /* Click on white space */
    128128            WPFolder* wpFolder;
    129             wpFolder=(WPFolder*)WPFolderWindow_wpQueryWPObject(pWindow, NULLHANDLE);
     129            wpFolder=(WPFolder*)WPFolderWindow_wpQueryObject(pWindow, NULLHANDLE);
    130130            TST_OBJECT(wpFolder);
    131131           
     
    216216        return FALSE;
    217217
    218       wpObject=WPFolderWindow_wpQueryWPObject(pWindow, NULLHANDLE);     
     218      wpObject=WPFolderWindow_wpQueryObject(pWindow, NULLHANDLE);     
    219219
    220220      if(!nomIsObj(wpObject))
     
    341341        /* Add the object to the list of items for this drag */
    342342        NOMDragInfo_addWPObjectToItemList(nomDragInfo, wpObject,
    343                                        (PWPFolder)WPFolderWindow_wpQueryWPObject(wpFolderWindow, NULLHANDLE),
     343                                       (PWPFolder)WPFolderWindow_wpQueryObject(wpFolderWindow, NULLHANDLE),
    344344                                       widget, NULLHANDLE);
    345345      }
     
    409409        return FALSE;
    410410
    411       wpObject=WPFolderWindow_wpQueryWPObject(pWindow, NULLHANDLE);     
     411      wpObject=WPFolderWindow_wpQueryObject(pWindow, NULLHANDLE);     
    412412
    413413      if(!nomIsObj(wpObject))
     
    652652
    653653#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 #endif
    679 #if 0
    680654  /* Connect to the "clicked" signal of the "Up" tool button */
    681655  g_signal_connect (up_button, "clicked",
     
    683657#endif
    684658
     659  /* Prepare drag and drop */
    685660  _wpConnectDefaultSignalHandlers(nomSelf, icon_view, NULLHANDLE);
    686661  WPFolderWindow_wpSetContainerHandle(nomSelf, icon_view, NULLHANDLE);
  • trunk/desktop/class_c/wpwindow.c

    r237 r247  
    5757   info.
    5858
    59    \sa wpQueryWPObject(), wpSetWPObject()
     59   \sa wpQueryObject(), wpSetObject()
    6060 */
    61 NOM_Scope void NOMLINK impl_WPWindow_wpSetWPObject(WPWindow* nomSelf, const PWPObject wpObject, CORBA_Environment *ev)
     61NOM_Scope void NOMLINK impl_WPWindow_wpSetObject(WPWindow* nomSelf, const PWPObject wpObject, CORBA_Environment *ev)
    6262{
    6363  WPWindowData* nomThis=WPWindowGetData(nomSelf);
     
    7171   \sa wpQueryWPObject(), wpSetWPObject()
    7272 */
    73 NOM_Scope PWPObject NOMLINK impl_WPWindow_wpQueryWPObject(WPWindow* nomSelf, CORBA_Environment *ev)
     73NOM_Scope PWPObject NOMLINK impl_WPWindow_wpQueryObject(WPWindow* nomSelf, CORBA_Environment *ev)
    7474{
    7575  WPWindowData* nomThis=WPWindowGetData(nomSelf);
  • trunk/desktop/dox/examples/wpsetwpobject.c

    r237 r247  
    11/**
    2   This method creates the folder window it doesn't query any files or creates
     2  This method creates a folder window it doesn't query any files or creates
    33  models and stuff.
    44*/
     
    1515
    1616  /* Save a pointer to the desktop folder object */
    17   WPFolderWindow_wpSetWPObject(wpFldrWindow, (WPObject*)nomSelf, NULLHANDLE);
     17  WPFolderWindow_wpSetObject(wpFldrWindow, (WPObject*)nomSelf, NULLHANDLE);
    1818
    1919  /* Connect to the "item_activated" signal */
  • trunk/desktop/idl/wpwindow.idl

    r245 r247  
    7979     g_object_set_data(G_OBJECT(window), NOMOBJECT_KEY_STRING, nomSelf);
    8080     \endcode
    81      That call is used internally by the WPWindow class to connect a WPWindow instance
     81     That function is used internally by the WPWindow class to connect a WPWindow instance
    8282     (nomSelf in this call) with a GTK window.
    8383
     
    8989     \par Example:
    9090     The follwing code is a method implementation of class WPFolder. It creates a new
    91      folder window (of class WPFolderWindow) and uses wpSetWPObject() to connect the folder
     91     folder window (of class WPFolderWindow) and uses wpSetObject() to connect the folder
    9292     object (nomSelf) with the folder window.
    9393     \include wpsetwpobject.c
    9494
    95      \sa wpQueryWPObject()
     95     \sa wpQueryObject()
    9696   */
    97   void wpSetWPObject(in PWPObject wpObject);
     97  void wpSetObject(in PWPObject wpObject);
    9898
    9999  /**
     
    104104     g_object_get_data(G_OBJECT(window), NOMOBJECT_KEY_STRING);
    105105     \endcode
    106      Using that call one queries the window object (\b not the desktop object) from
     106     Using that function one queries the window object (\b not the desktop object) from
    107107     a GTK toplevel window.
    108108
     
    110110     This method is usually not overriden.
    111111
    112      \sa wpSetWPObject()
     112     \sa wpSetObject()
    113113  */
    114   PWPObject wpQueryWPObject();
     114  PWPObject wpQueryObject();
    115115  void wpSetWindowTitle(in PNOMString newTitle);
    116116  NOMINSTANCEVAR(PWPObject wpObject);
Note: See TracChangeset for help on using the changeset viewer.