/dev/twasilczyk/screenshot: 8d17d321e66c: scrncap: don't stick s...
Tomasz Wasilczyk
twasilczyk at pidgin.im
Tue Apr 29 12:23:50 EDT 2014
Changeset: 8d17d321e66cbff25b2935d7e2ac4fcf80686755
Author: Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date: 2014-04-29 18:23 +0200
Branch: default
URL: https://hg.pidgin.im/dev/twasilczyk/screenshot/rev/8d17d321e66c
Description:
scrncap: don't stick screenshot to the corner of window
diffstat:
pidgin/plugins/screencap.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (23 lines):
diff --git a/pidgin/plugins/screencap.c b/pidgin/plugins/screencap.c
--- a/pidgin/plugins/screencap.c
+++ b/pidgin/plugins/screencap.c
@@ -213,7 +213,7 @@ static void
scrncap_draw_window(GdkPixbuf *screen)
{
GtkWidget *draw_window;
- GtkWidget *drawing_area;
+ GtkWidget *drawing_area, *box;
GtkWidget *scroll_area;
int width, height;
cairo_t *cr;
@@ -259,7 +259,9 @@ scrncap_draw_window(GdkPixbuf *screen)
g_signal_connect(G_OBJECT(drawing_area), "motion-notify-event",
G_CALLBACK(scrncap_drawing_area_motion), cr);
- scroll_area = pidgin_make_scrollable(drawing_area,
+ box = gtk_alignment_new(0.5, 0.5, 0, 0);
+ gtk_container_add(GTK_CONTAINER(box), drawing_area);
+ scroll_area = pidgin_make_scrollable(box,
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC,
GTK_SHADOW_IN, -1, -1);
gtk_container_add(GTK_CONTAINER(draw_window), scroll_area);
More information about the Commits
mailing list