Changeset 35
- Timestamp:
- 05/12/07 18:29:22 (2 years ago)
- Files:
-
- branches/bughunt/dsss.conf (modified) (1 diff)
- branches/bughunt/minwin/gtk.di (modified) (8 diffs)
- branches/bughunt/minwin/menu.d (modified) (2 diffs)
- branches/bughunt/minwin/text.d (modified) (2 diffs)
- branches/bughunt/minwin/window.d (modified) (2 diffs)
- branches/bughunt/readme.txt (modified) (1 diff)
- branches/bughunt/samples/notepad.d (added)
- branches/bughunt/todo.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/bughunt/dsss.conf
r34 r35 19 19 [samples/layout.d] 20 20 [samples/menus.d] 21 [samples/notepad.d] 21 22 [samples/painting.d] 22 23 [samples/sample.d] branches/bughunt/minwin/gtk.di
r33 r35 13083 13083 gpointer data); 13084 13084 13085 13086 13087 13088 13085 struct _GtkRequisition { 13089 13086 gint width; … … 13091 13088 } 13092 13089 13093 13094 13095 13096 13097 13098 13090 struct _GtkWidget { 13099 13100 13101 13102 13103 13104 13105 13091 GtkObject object; 13106 13107 13108 13109 13110 13111 13112 13092 guint16 private_flags; 13113 13114 13115 13116 13117 13093 guint8 state; 13118 13119 13120 13121 13122 13123 13124 13125 13094 guint8 saved_state; 13126 13127 13128 13129 13130 13131 13132 13133 13095 gchar *name; 13134 13096 GtkStyle *style; 13135 13136 13137 13138 13097 GtkRequisition requisition; 13139 13140 13141 13142 13098 GtkAllocation allocation; 13143 13144 13145 13146 13147 13148 13099 GdkWindow *window; 13149 13150 13151 13152 13100 GtkWidget *parent; 13153 13101 } 13154 13102 13155 13103 struct _GtkWidgetClass { 13156 13157 13158 13159 13160 13161 13162 13104 GtkObjectClass parent_class; 13163 13164 13165 13166 13105 guint activate_signal; 13167 13168 13106 guint set_scroll_adjustments_signal; 13169 13170 13171 13172 13107 13173 13108 void (*dispatch_child_properties_changed) (GtkWidget *widget, … … 13203 13138 GParamSpec *pspec); 13204 13139 13205 13206 13140 gboolean (* mnemonic_activate) (GtkWidget *widget, 13207 13141 gboolean group_cycling); 13208 13209 13142 13210 13143 void (* grab_focus) (GtkWidget *widget); 13211 13144 gboolean (* focus) (GtkWidget *widget, 13212 13145 GtkDirectionType direction); 13213 13214 13146 13215 13147 gboolean (* event) (GtkWidget *widget, … … 13268 13200 GdkEventWindowState *event); 13269 13201 13270 13271 13202 void (* selection_get) (GtkWidget *widget, 13272 13203 GtkSelectionData *selection_data, … … 13276 13207 GtkSelectionData *selection_data, 13277 13208 guint time_); 13278 13279 13209 13280 13210 void (* drag_begin) (GtkWidget *widget, … … 13289 13219 void (* drag_data_delete) (GtkWidget *widget, 13290 13220 GdkDragContext *context); 13291 13292 13221 13293 13222 void (* drag_leave) (GtkWidget *widget, … … 13312 13241 guint time_); 13313 13242 13314 13315 13243 gboolean (* popup_menu) (GtkWidget *widget); 13316 13317 13318 13319 13320 13321 13244 13322 13245 gboolean (* show_help) (GtkWidget *widget, 13323 13246 GtkWidgetHelpType help_type); 13324 13325 13326 13247 13327 13248 AtkObject* (*get_accessible) (GtkWidget *widget); … … 13331 13252 gboolean (*can_activate_accel) (GtkWidget *widget, 13332 13253 guint signal_id); 13333 13334 13254 13335 13255 void (*_gtk_reserved2) (); branches/bughunt/minwin/menu.d
r33 r35 38 38 MenuBar parentBar; 39 39 40 this( inoutMenuBar bar, char[] label, char[] name = "") {40 this(MenuBar bar, char[] label, char[] name = "") { 41 41 this.name = name; 42 42 parentBar = bar; … … 87 87 GtkWidget* trigger; 88 88 89 this( inoutMenuBar bar, char[] label, char[] name = "") {89 this(MenuBar bar, char[] label, char[] name = "") { 90 90 this.name = name; 91 91 parentBar = bar; branches/bughunt/minwin/text.d
r33 r35 104 104 105 105 class Text : WindowChild { 106 this(Component parent, char[] text , char[] name = "") {106 this(Component parent, char[] text = "", char[] name = "") { 107 107 PeerForAdd parentp = parent.getPeerForAdd(); 108 108 this.name = name; … … 138 138 GtkScrolledWindow* scrolledWnd; 139 139 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 = "") { 141 141 PeerForAdd parentp = parent.getPeerForAdd(); 142 142 this.name = name; branches/bughunt/minwin/window.d
r33 r35 391 391 this.name = name; 392 392 setWindowPeer(this,peer,OWNS_PEER); 393 backgroundPeer = GetStockObject(WHITE_BRUSH);393 //backgroundPeer = GetStockObject(WHITE_BRUSH); 394 394 WindowList[this] = this; // prevent garbage collection 395 395 } … … 673 673 gtk_window_set_title(peer,str); 674 674 gtk_window_set_default_size(peer,DefaultWindowWidth,DefaultWindowHeight); 675 backgroundColor = RGB(255,255,255);675 //backgroundColor = RGB(255,255,255); 676 676 this.name = name; 677 677 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. 1 MinWin is a minimalistic multi-platform GUI toolkit. 2 Originally written by Ben Hinkle and released into the public domain[1]. 2 3 3 Updated on 20060520 by Christopher E. Miller. 4 My changes are donated to the MinWin project. 4 Contributors: 5 * Ben Hinkle 6 * Christopher E. Miller 7 * Tomas Lindquist Olsen 5 8 6 Updated on 20061128 by Tomas L. Olsen. 7 It should now compile using DMD 0.175. 9 Check the website[2] for more information. 8 10 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 not2 allowed so I'll put the comments here. On linux the build will fail since3 it uses Windows commands for creating a library. If the build fails with4 "lib not found" or something run5 ar -r libminwin_gtk.a *.o6 Get build from www.dsource.org and run with7 build @gtk.brf or @win32.brf8 9 1 * x11 10 2 - font/fontset/encoding … … 53 45 dropdown on windows doesn't work 54 46 GroupBox doesn't let radio buttons switch 55 list on gtk is squished 47 list on gtk is squished FIXED 56 48 border layout completely untested
