summaryrefslogtreecommitdiff
path: root/x11-misc/pdfpres/files
diff options
context:
space:
mode:
authorRené Neumann <rene.neumann@in.tum.de>2013-05-24 15:12:38 +0200
committerRené Neumann <rene.neumann@in.tum.de>2013-05-24 15:12:38 +0200
commita43866f4a46a99fb4037f9fe96961d99543d1bad (patch)
tree145454b2cae69204b07f31e801d886884d03635e /x11-misc/pdfpres/files
parentc7f7803349508e17bbc3e6a78809ae9d5639b2f1 (diff)
downloadoverlay-a43866f4a46a99fb4037f9fe96961d99543d1bad.tar.gz
overlay-a43866f4a46a99fb4037f9fe96961d99543d1bad.tar.bz2
overlay-a43866f4a46a99fb4037f9fe96961d99543d1bad.zip
pdfpres -- master from git
Diffstat (limited to 'x11-misc/pdfpres/files')
-rw-r--r--x11-misc/pdfpres/files/pdfpres-0.2.3_p1-fix_fullscreen.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/x11-misc/pdfpres/files/pdfpres-0.2.3_p1-fix_fullscreen.patch b/x11-misc/pdfpres/files/pdfpres-0.2.3_p1-fix_fullscreen.patch
new file mode 100644
index 0000000..efeae21
--- /dev/null
+++ b/x11-misc/pdfpres/files/pdfpres-0.2.3_p1-fix_fullscreen.patch
@@ -0,0 +1,50 @@
+commit dbf3e3edba7cf22d5e643a7db8a89daa09d5bad9
+Author: René Neumann <rene.neumann@in.tum.de>
+Date: Fri May 24 13:34:42 2013 +0200
+
+ Revert "Don't use gtk_widget_set_size_request()."
+
+ This reverts commit 553ba0f36948b56137b9476a26d55817cacc9d1a.
+ Else fullscreen is broken for the control window.
+
+diff --git a/pdfpres.c b/pdfpres.c
+index 1166b3f..7352205 100644
+--- a/pdfpres.c
++++ b/pdfpres.c
+@@ -1523,6 +1523,7 @@ static void initGUI(int numframes, gchar *notefile)
+ gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(notePad), FALSE);
+ g_signal_connect(G_OBJECT(notePad), "key_press_event",
+ G_CALLBACK(onPadKeyPressed), NULL);
++ gtk_widget_set_size_request(notePad, 200, 50);
+
+ /* Remarks:
+ *
+@@ -1623,6 +1624,7 @@ static void initGUI(int numframes, gchar *notefile)
+ /* create a new drawing area - the pdf will be rendered in
+ * there */
+ image = gtk_image_new();
++ gtk_widget_set_size_request(image, 100, 100);
+
+ /* add widgets to their parents. the image is placed in an
+ * eventbox, the box's size_allocate signal will be handled. so,
+@@ -1724,6 +1726,7 @@ static void initGUI(int numframes, gchar *notefile)
+
+ /* add a rendering area to the beamer window */
+ image = gtk_image_new();
++ gtk_widget_set_size_request(image, 320, 240);
+
+ gtk_container_add(GTK_CONTAINER(win_beamer), image);
+
+@@ -1751,12 +1754,6 @@ static void initGUI(int numframes, gchar *notefile)
+ showNotesFromFile(notefile);
+ }
+
+- /* Set default sizes for both windows. (Note: If the widgets don't
+- * fit into that space, the windows will be larger. Also, they are
+- * allowed to get shrinked by the user.) */
+- gtk_window_set_default_size(GTK_WINDOW(win_preview), 640, 480);
+- gtk_window_set_default_size(GTK_WINDOW(win_beamer), 320, 240);
+-
+ /* show the windows */
+ gtk_widget_show_all(win_preview);
+ gtk_widget_show_all(win_beamer);