Ignore:
Timestamp:
Jan 13, 2007, 12:36:01 PM (19 years ago)
Author:
cinc
Message:

Folder viws are working now. Load of fixes and enhancements for it to work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/class_c/nomfolderwindow.c

    r163 r186  
    4444#include <gtk/gtk.h>
    4545#include "nomguitk.h"
     46#include "nomwindow.h"
     47#include "desktoptypes.h"
     48
    4649#include "nomfolderwindow.ih"
    47 
    48 #warning !!!!! nomIsObj() must be globaly defined !!!!!
    49 #define nomIsObj(a) ((a)!= 0)
    50 
    5150
    5251NOM_Scope PGtkWidget NOMLINK impl_NOMFolderWindow_queryContainerHandle(NOMFolderWindow* nomSelf, CORBA_Environment *ev)
     
    7069  NOMFolderWindowData* nomThis=NOMFolderWindowGetData(nomSelf);
    7170
    72   if(!nomIsObj(pWPFolderObject))
     71  if(!nomIsObj((NOMObject*)pWPFolderObject))
    7372    return;
    7473
     
    8382}
    8483
     84#if 0
    8585static void
    8686itemActivated (GtkIconView *icon_view,
     
    9090  DosBeep(1500, 100);
    9191}
     92#endif
    9293
    9394/*
     
    164165}
    165166
    166 
     167#if 0
    167168static gboolean
    168169handleEvent (GtkWidget *widget, GdkEventButton *event, gpointer user_data)
    169170{
    170   DosBeep(5000, 100);
     171  DosBeep(500, 100);
    171172 
    172173  return FALSE;
    173174}
    174175
    175 extern gpointer *pGlobalMemInExe;
     176static void
     177itemActivated (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
    176192
    177193NOM_Scope void NOMLINK impl_NOMFolderWindow_nomInit(NOMFolderWindow* nomSelf, CORBA_Environment *ev)
     
    249265  gtk_icon_view_set_selection_mode (GTK_ICON_VIEW (icon_view),
    250266                                    GTK_SELECTION_MULTIPLE);
     267#if 0
    251268  /* Connect to the "item_activated" signal */
    252269  g_signal_connect (icon_view, "item-activated",
    253270                    G_CALLBACK (itemActivated), nomSelf);
     271#endif
    254272  //#endif
    255273
     
    276294  gtk_widget_grab_focus (icon_view);
    277295
    278   g_signal_connect (GTK_WIDGET(window), "size-request",
    279                     G_CALLBACK (handleEvent), nomSelf);
     296  //  g_signal_connect (GTK_WIDGET(window), "size-request",
     297  //                G_CALLBACK (handleEvent), nomSelf);
    280298
    281299  NOMFolderWindow_setWindowHandle(nomSelf, window, NULLHANDLE);
Note: See TracChangeset for help on using the changeset viewer.