rpms/ghex/F-9 ghex-2.22.0-startup-crash.patch,NONE,1.1
Dodji Seketeli
dodji at fedoraproject.org
Fri Feb 20 12:22:01 UTC 2009
Author: dodji
Update of /cvs/pkgs/rpms/ghex/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16149
Added Files:
ghex-2.22.0-startup-crash.patch
Log Message:
initial import
ghex-2.22.0-startup-crash.patch:
--- NEW FILE ghex-2.22.0-startup-crash.patch ---
2009-02-15 Dodji Seketeli <dodji at redhat.com>
* 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.
diff --git a/src/gtkhex.c b/src/gtkhex.c
index c512cf3..06a7675 100644
--- a/src/gtkhex.c
+++ b/src/gtkhex.c
@@ -2040,8 +2040,8 @@ static void gtk_hex_init(GtkHex *gh, gpointer klass) {
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 = {
diff --git a/src/gtkhex.h b/src/gtkhex.h
index 2dea885..155c40f 100644
--- a/src/gtkhex.h
+++ b/src/gtkhex.h
@@ -128,7 +128,7 @@ struct _GtkHexClass
void (*paste_clipboard)(GtkHex *);
};
-guint gtk_hex_get_type(void);
+GType gtk_hex_get_type(void);
GtkWidget *gtk_hex_new(HexDocument *);
More information about the fedora-extras-commits
mailing list