# HG changeset patch # User Daniel Atallah # Date 1128375213 0 # Node ID 86501c7bce4690b47727a3b3a75051b76e728c0f # Parent ae13e73e4fd9ea4613fc83fabbf192c03ab26f47 [gaim-migrate @ 13872] Determine the GTK+ and Glib versions from the library as opposed to the registry committer: Tailor Script diff -r ae13e73e4fd9 -r 86501c7bce46 plugins/win32/winprefs/winprefs.c --- a/plugins/win32/winprefs/winprefs.c Mon Oct 03 12:04:57 2005 +0000 +++ b/plugins/win32/winprefs/winprefs.c Mon Oct 03 21:33:33 2005 +0000 @@ -250,7 +250,7 @@ static int halt_flash_filter (GtkWidget *widget, GdkEventFocus *event, gpointer data) { - if (MyFlashWindowEx) { + if (MyFlashWindowEx) { HWND hWnd = data; FLASHWINFO info; @@ -375,28 +375,9 @@ ret = gtk_vbox_new(FALSE, 18); gtk_container_set_border_width (GTK_CONTAINER (ret), 12); - while(hKey) { - char version[25]; - DWORD vlen = 25; - if(wgaim_read_reg_string(hKey, "SOFTWARE\\GTK\\2.0", "Version", (LPBYTE)&version, &vlen)) { - char revision[25]; - DWORD rlen = 25; - gboolean gotrev = FALSE; - if(wgaim_read_reg_string(hKey, "SOFTWARE\\GTK\\2.0", "Revision", (LPBYTE)&revision, &rlen)) { - revision[0] = g_ascii_toupper(revision[0]); - revision[1] = '\0'; - gotrev = TRUE; - } - gtk_version = g_strdup_printf("%s%s%s", version, - (gotrev ? " Revision " : ""), - (gotrev ? revision : "")); - hKey = 0; - } - if(hKey == HKEY_CURRENT_USER) - hKey = HKEY_LOCAL_MACHINE; - else if(hKey == HKEY_LOCAL_MACHINE) - hKey = 0; - } + gtk_version = g_strdup_printf("GTK+ %u.%u.%u\nGlib %u.%u.%u", + gtk_major_version, gtk_minor_version, gtk_micro_version, + glib_major_version, glib_minor_version, glib_micro_version); /* Display Installed GTK+ Runtime Version */ if(gtk_version) {