Changeset 35

Show
Ignore:
Timestamp:
05/12/07 18:29:22 (2 years ago)
Author:
lindquist
Message:

more fixes. starting notepad sample.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/bughunt/dsss.conf

    r34 r35  
    1919[samples/layout.d] 
    2020[samples/menus.d] 
     21[samples/notepad.d] 
    2122[samples/painting.d] 
    2223[samples/sample.d] 
  • branches/bughunt/minwin/gtk.di

    r33 r35  
    1308313083                        gpointer data); 
    1308413084 
    13085  
    13086  
    13087  
    1308813085    struct _GtkRequisition { 
    1308913086    gint width; 
     
    1309113088    } 
    1309213089 
    13093  
    13094  
    13095  
    13096  
    13097  
    1309813090    struct _GtkWidget { 
    13099  
    13100  
    13101  
    13102  
    13103  
    13104  
    1310513091    GtkObject object; 
    13106  
    13107  
    13108  
    13109  
    13110  
    13111  
    1311213092    guint16 private_flags; 
    13113  
    13114  
    13115  
    13116  
    1311713093    guint8 state; 
    13118  
    13119  
    13120  
    13121  
    13122  
    13123  
    13124  
    1312513094    guint8 saved_state; 
    13126  
    13127  
    13128  
    13129  
    13130  
    13131  
    13132  
    1313313095    gchar *name; 
    1313413096    GtkStyle *style; 
    13135  
    13136  
    13137  
    1313813097    GtkRequisition requisition; 
    13139  
    13140  
    13141  
    1314213098    GtkAllocation allocation; 
    13143  
    13144  
    13145  
    13146  
    13147  
    1314813099    GdkWindow *window; 
    13149  
    13150  
    13151  
    1315213100    GtkWidget *parent; 
    1315313101    } 
    1315413102 
    1315513103    struct _GtkWidgetClass { 
    13156  
    13157  
    13158  
    13159  
    13160  
    13161  
    1316213104    GtkObjectClass parent_class; 
    13163  
    13164  
    13165  
    1316613105    guint activate_signal; 
    13167  
    1316813106    guint set_scroll_adjustments_signal; 
    13169  
    13170  
    13171  
    1317213107 
    1317313108    void (*dispatch_child_properties_changed) (GtkWidget *widget, 
     
    1320313138                    GParamSpec *pspec); 
    1320413139 
    13205  
    1320613140    gboolean (* mnemonic_activate) (GtkWidget *widget, 
    1320713141                    gboolean group_cycling); 
    13208  
    1320913142 
    1321013143    void (* grab_focus) (GtkWidget *widget); 
    1321113144    gboolean (* focus) (GtkWidget *widget, 
    1321213145                    GtkDirectionType direction); 
    13213  
    1321413146 
    1321513147    gboolean (* event) (GtkWidget *widget, 
     
    1326813200                        GdkEventWindowState *event); 
    1326913201 
    13270  
    1327113202    void (* selection_get) (GtkWidget *widget, 
    1327213203                    GtkSelectionData *selection_data, 
     
    1327613207                    GtkSelectionData *selection_data, 
    1327713208                    guint time_); 
    13278  
    1327913209 
    1328013210    void (* drag_begin) (GtkWidget *widget, 
     
    1328913219    void (* drag_data_delete) (GtkWidget *widget, 
    1329013220                    GdkDragContext *context); 
    13291  
    1329213221 
    1329313222    void (* drag_leave) (GtkWidget *widget, 
     
    1331213241                    guint time_); 
    1331313242 
    13314  
    1331513243    gboolean (* popup_menu) (GtkWidget *widget); 
    13316  
    13317  
    13318  
    13319  
    13320  
    1332113244 
    1332213245    gboolean (* show_help) (GtkWidget *widget, 
    1332313246                    GtkWidgetHelpType help_type); 
    13324  
    13325  
    1332613247 
    1332713248    AtkObject* (*get_accessible) (GtkWidget *widget); 
     
    1333113252    gboolean (*can_activate_accel) (GtkWidget *widget, 
    1333213253                    guint signal_id); 
    13333  
    1333413254 
    1333513255    void (*_gtk_reserved2) (); 
  • branches/bughunt/minwin/menu.d

    r33 r35  
    3838        MenuBar parentBar; 
    3939 
    40         this(inout MenuBar bar, char[] label, char[] name = "") { 
     40        this(MenuBar bar, char[] label, char[] name = "") { 
    4141            this.name = name; 
    4242            parentBar = bar; 
     
    8787        GtkWidget* trigger; 
    8888 
    89         this(inout MenuBar bar, char[] label, char[] name = "") { 
     89        this(MenuBar bar, char[] label, char[] name = "") { 
    9090            this.name = name; 
    9191            parentBar = bar; 
  • branches/bughunt/minwin/text.d

    r33 r35  
    104104 
    105105    class Text : WindowChild { 
    106         this(Component parent, char[] text, char[] name = "") { 
     106        this(Component parent, char[] text = "", char[] name = "") { 
    107107            PeerForAdd parentp = parent.getPeerForAdd(); 
    108108            this.name = name; 
     
    138138        GtkScrolledWindow* scrolledWnd; 
    139139 
    140         this(Component parent, char[] text, bool vscroll = true, bool hscroll = true, char[] name = "") { 
     140        this(Component parent, char[] text = "", bool vscroll = true, bool hscroll = true, char[] name = "") { 
    141141            PeerForAdd parentp = parent.getPeerForAdd(); 
    142142            this.name = name; 
  • branches/bughunt/minwin/window.d

    r33 r35  
    391391            this.name = name; 
    392392            setWindowPeer(this,peer,OWNS_PEER); 
    393             backgroundPeer = GetStockObject(WHITE_BRUSH); 
     393            //backgroundPeer = GetStockObject(WHITE_BRUSH); 
    394394            WindowList[this] = this; // prevent garbage collection 
    395395        } 
     
    673673            gtk_window_set_title(peer,str); 
    674674            gtk_window_set_default_size(peer,DefaultWindowWidth,DefaultWindowHeight); 
    675             backgroundColor = RGB(255,255,255); 
     675            //backgroundColor = RGB(255,255,255); 
    676676            this.name = name; 
    677677            gtk_widget_add_events(cast(GtkWidget*)peer,GdkEventMask.GDK_KEY_PRESS_MASK | 
  • branches/bughunt/readme.txt

    r33 r35  
    1 MinWin originally written by Ben Hinkle. 
     1MinWin is a minimalistic multi-platform GUI toolkit. 
     2Originally written by Ben Hinkle and released into the public domain[1]. 
    23 
    3 Updated on 20060520 by Christopher E. Miller. 
    4 My changes are donated to the MinWin project. 
     4Contributors: 
     5 * Ben Hinkle 
     6 * Christopher E. Miller 
     7 * Tomas Lindquist Olsen 
    58 
    6 Updated on 20061128 by Tomas L. Olsen. 
    7 It should now compile using DMD 0.175. 
     9Check the website[2] for more information. 
    810 
    9 http://www.dprogramming.com/minwin.php 
     11[1] : http://creativecommons.org/licenses/publicdomain 
     12[2] : http://dsource.org/projects/minwin 
  • branches/bughunt/todo.txt

    r33 r35  
    1 * clean up build response files: brf. It seems like comments are not 
    2 allowed so I'll put the comments here. On linux the build will fail since 
    3 it uses Windows commands for creating a library. If the build fails with 
    4 "lib not found" or something run 
    5 ar -r libminwin_gtk.a *.o 
    6 Get build from www.dsource.org and run with 
    7 build @gtk.brf or @win32.brf 
    8  
    91* x11 
    102 - font/fontset/encoding 
     
    5345  dropdown on windows doesn't work 
    5446  GroupBox doesn't let radio buttons switch 
    55   list on gtk is squished 
     47  list on gtk is squished FIXED 
    5648  border layout completely untested