Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 464222 Details for
Bug 587396
media-gfx/pqiv-2.2 : pqiv.c:51:23: fatal error: gdk/gdkx.h: No such file or directory
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to make the X11 dependency optional in pqiv 2.2
pqiv-2.2-remove-xlib.patch (text/plain), 1.51 KB, created by
Phillip Berndt
on 2017-02-18 14:20:04 UTC
(
hide
)
Description:
Patch to make the X11 dependency optional in pqiv 2.2
Filename:
MIME Type:
Creator:
Phillip Berndt
Created:
2017-02-18 14:20:04 UTC
Size:
1.51 KB
patch
obsolete
>diff --git a/pqiv.c b/pqiv.c >index 082154b..beb32db 100644 >--- a/pqiv.c >+++ b/pqiv.c >@@ -48,11 +48,14 @@ > #include <windows.h> > #else > #include <sys/wait.h> >+ >+ #ifdef GDK_WINDOWING_X11 > #include <gdk/gdkx.h> > > #if GTK_MAJOR_VERSION < 3 > #include <X11/Xatom.h> > #endif >+ #endif > #endif > > // GTK 2 does not define keyboard aliases the way we do >@@ -3170,6 +3173,7 @@ void window_screen_changed_callback(GtkWidget *widget, GdkScreen *previous_scree > void window_realize_callback(GtkWidget *widget, gpointer user_data) {/*{{{*/ > if(option_start_fullscreen) { > #ifndef _WIN32 >+ #ifdef GDK_WINDOWING_X11 > GdkScreen *screen = gdk_screen_get_default(); > if(strcmp("unknown", gdk_x11_screen_get_window_manager_name(screen)) == 0) { > // No window manager present. We need some oher means to fullscreen. >@@ -3180,6 +3184,7 @@ void window_realize_callback(GtkWidget *widget, gpointer user_data) {/*{{{*/ > window_state_into_fullscreen_actions(); > } > #endif >+ #endif > > gtk_window_fullscreen(main_window); > } >@@ -3257,11 +3262,13 @@ void create_window() { /*{{{*/ > // If no WM is present, move the window to the screen origin and > // assume fullscreen right from the start > #ifndef _WIN32 >+ #ifdef GDK_WINDOWING_X11 > if(strcmp("unknown", gdk_x11_screen_get_window_manager_name(screen)) == 0) { > main_window_in_fullscreen = TRUE; > gtk_window_move(main_window, screen_geometry.x, screen_geometry.y); > } > #endif >+ #endif > gtk_window_fullscreen(main_window); > } > else if(option_window_position.x >= 0) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 587396
:
439066
|
439068
|
439070
| 464222