ghex r1227 - in trunk: . src
- From: jjongsma svn gnome org
- To: svn-commits-list gnome org
- Subject: ghex r1227 - in trunk: . src
- Date: Thu, 19 Feb 2009 04:53:18 +0000 (UTC)
Author: jjongsma
Date: Thu Feb 19 04:53:18 2009
New Revision: 1227
URL: http://svn.gnome.org/viewvc/ghex?rev=1227&view=rev
Log:
*_get_type() should return a GType, not guint
* src/gtkhex.c (gtk_hex_init): GObject type ids should be instances of
GType, not of guint. On x86_64, GType size is 8 bytes whereas guint is
4 bytes. This was causing random crashes in Nemiver in gtk_hex_new.
Modified:
trunk/ChangeLog
trunk/src/gtkhex.c
trunk/src/gtkhex.h
Modified: trunk/src/gtkhex.c
==============================================================================
--- trunk/src/gtkhex.c (original)
+++ trunk/src/gtkhex.c Thu Feb 19 04:53:18 2009
@@ -2040,8 +2040,8 @@
gtk_widget_show(gh->scrollbar);
}
-guint gtk_hex_get_type() {
- static guint gh_type = 0;
+GType gtk_hex_get_type() {
+ static GType gh_type = 0;
if(!gh_type) {
GTypeInfo gh_info = {
Modified: trunk/src/gtkhex.h
==============================================================================
--- trunk/src/gtkhex.h (original)
+++ trunk/src/gtkhex.h Thu Feb 19 04:53:18 2009
@@ -128,7 +128,7 @@
void (*paste_clipboard)(GtkHex *);
};
-guint gtk_hex_get_type(void);
+GType gtk_hex_get_type(void);
GtkWidget *gtk_hex_new(HexDocument *);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]