Displaying 20 results from an estimated 27 matches for "gtkwindow".
Did you mean:
gtk_window
2012 Mar 08
3
"figure margins too large" in RGtk2 drawing area as cairo device - why?
When using a gtkDrawingArea as a Cairo device I very often encounter the error: "figure margins too large"
Even for the below "getting started" example from http://www.ggobi.org/rgtk2/ this is the case.
> win = gtkWindow()
> da = gtkDrawingArea()
> win$add(da)
> asCairoDevice(da)
[1] TRUE
> plot(1:10)
Fehler in plot.new() : Grafikr?nder zu gro?
>
Also enlarging the drawing area does not help.
> win = gtkWindow()
> da = gtkDrawingArea()
> win$add(da)
> asCairoDevice(da)
[1] TRUE
>...
2007 Mar 17
2
newbie: listbook sample on fedora5
opens a basic frame (empty) with following errors
(wxruby:17165): Gtk-WARNING **: Attempting to add a widget with type
GtkPizza to a GtkWindow, but as a GtkBin subclass a GtkWindow can only
contain one widget at a time; it already contains a widget of type
GtkPizza
(wxruby:17165): Gdk-CRITICAL **: gdk_drawable_get_depth: assertion
`GDK_IS_DRAWABLE (drawable)'' failed
(wxruby:17165): Gtk-CRITICAL **: gtk_paint_flat_box: assertion...
2008 Aug 06
1
RGtk2 on linux: "stack smashing detected"
...;LC_TELEPHONE=C;LC_MEASUREMENT=en_AU.UTF-8;LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
> other attached packages:
> [1] RGtk2_2.12.1
> > stop("hello")
> Error: hello
> > foo <- GtkWindow()
> Error: could not find function "GtkWindow"
> > foo <- gtkWindow()
> > butt <- gtkButton("error")
> > gSignalConnect(butt, "clicked", function(...) stop("hello"))
> clicked
> 16
> attr(,"class")
> [1] &q...
2008 Apr 05
2
Odd tcltk and Rattle interference on MS/Windows
Hi Graham,
Your guess is right. The event loop stuff is handled differently on Windows
than on Unix-like OSes. There is a hook, called tcl_do that is hard-coded
into the R Windows GUI. It is called whenever the console is idle. RGtk2 is
able to hook into that to process GTK+ events. The problem is that the two
packages replace each other's handler. So in this case tcltk is blocking
GTK+ from
2011 Dec 22
1
RGtk2: How to overlay a gtkDrawingArea with a button or any other widget?
I try to overlay a plot inside a gtkDrawingArea with a button (or any other widget).
I tried to put both into a gtkFixed container.
But this does not work, no printing occurs.
Does someone know a solution?
What I tried:
w <- gtkWindow()
w$setSizeRequest(400,400)
fx <- gtkFixed()
da <- gtkDrawingArea()
fx$put(da, 100, 100)
asCairoDevice(da)
par(mar=c(0,0,0,0))
plot(1:10)
btn.1 <- gtkButton("button")
fx$put(btn.1, 200, 200)
w$add(fx)
Thanks
Mark
????????????????????????????????????
Mark Heckmann
Blo...
2012 Mar 05
2
changing the drawing context using Cairo and RGtk2
...o familiar with Cairo and RGtk2 and have the following problem:
I have a container with two GTK drawing areas converted into Cairo devices.
I know that I can set the current drawing context e.g. using dev.set().
But this is tedious. How can I set the context using the objects da1 or da2?
w <- gtkWindow()
w$setSizeRequest(400, 400)
vbox <- gtkVBox()
da1 <- gtkDrawingArea()
da2 <- gtkDrawingArea()
vbox$add(da1)
vbox$add(da2)
dummy <- asCairoDevice(da1)
dummy <- asCairoDevice(da2)
w$add(vbox)
par(oma=c(0,0,0,0), mar=c(0,0,0,0))
plot(1:10)
THX
--Mark
???????????????...
2011 Jun 30
1
invalid body argument for function
Hi guys,
Looks like mkCLOSXP cannot handle external pointers as the function body.
Work around is obvious, but I guess it's a bug nonetheless.
> library(RGtk2)
> fun <- eval(substitute(function() x, list(x = gtkWindow())))
Error in eval(expr, envir, enclos) : invalid body argument for "function"
Should NEVER happen; please bug.report() [mkCLOSXP]
> sessionInfo()
R version 2.14.0 Under development (unstable) (--)
Platform: i686-pc-linux-gnu (32-bit)
locale:
[1] C
attached base packages:
[1] stats...
2009 May 29
1
GTK Tooltips under Linux
Dear all,
I want to set tool-tips for a gtkButton. I use the following code
which works under Windows. However, it doesn't work under Linux. Any
hints? Thanks.
library(RGtk2)
b<-gtkButtonNewWithLabel("OK")
gtkTooltips()$setTip(b,"Memo for a Button.")
gw <- gtkWindow(show=F)
gw$Add(b)
gw$Show()
> sessionInfo()
R version 2.8.0 Patched (2008-12-10 r47137)
i686-pc-linux-gnu
locale:
LC_CTYPE=zh_CN.UTF-8;LC_NUMERIC=C;LC_TIME=zh_CN.UTF-8;LC_COLLATE=zh_CN.UTF-8;LC_MONETARY=C;LC_MESSAGES=C;LC_PAPER=zh_CN.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=z...
2019 Aug 29
2
[PATCH] p2v: Ignore gtk2 deprecated declarations.
This patch is against libguestfs's old copy of p2v, but the same patch
ought to also apply against virt-p2v.
Rich.
2006 Dec 02
7
Gauge Problem with XRC?
Hi
I''ve just started using wxruby2-preview-0.0.36-i386-mswin32
outsourcing layout part to the external XRC file. Almost everything
seems to be fine. Only that I can never retrieve Gauge objects in the
main script. What I''ve been trying is something like this:
class MainFrame < Wx::Frame
include Wx
def initialize(parent)
super(nil,-1, "")
2019 Aug 29
0
[PATCH] p2v: Ignore gtk2 deprecated declarations.
...In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:33,
from gui.c:82:
/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’...
2003 Nov 19
1
size of graphics device
Dear all,
In many cases, I need a plotting region much bigger than the screen (e.g. for maps or for graphs with many labels).
A. MS-Windows
if I try
windows(width=25, height=25, rescale="fixed")
it seems to be OK (a screen with scrollbars, exactly what I need)
but if I try then
plot(faithful$eruptions, faithful$waiting)
I receive
Error in plot.new() : Outer margins too large
2007 Apr 20
1
faster image display?
Does someone here know of a way to display images in R that isn't slow?
Here are the things I've tried so far:
library(rimage)
i<-read.jpeg('foo.jpg')
plot(i) # very slow
library(pixmap)
i <- read.pnm('foo.pnm')
plot(i) # also slow
chans <- getChannels(i)
image(chans[,,1]) # this is slow too
I also tried using library(cairoDevice) but it only makes everything
2007 Nov 17
0
Drawing to a buffer (or double buffering)
...e plot.
I need it to be completely replaced immediately.
The only way I know of doing this is to output to png devices and
then sift through the pictures. That is very unappealing.
Manfred
P.S. The closest I've come was:
library("RGtk2")
library("cairoDevice")
win <- gtkWindow(show=FALSE)
gtkWindowResize(win,800,600)
da <- gtkDrawingArea()
win$add(da)
win$visible <- TRUE
asCairoDevice(da)
win$visible <- FALSE
plot.new()
par(mfrow=c(2,2))
plot(1:10)
# more plot commands
win$visible <- TRUE
2011 Mar 27
1
gtk, RGtk2 and error in callback: delet_event in mai window
...################
> # make a file GLADE for testing...
> tmp <- textConnection('
+ <?xml version="1.0"?>
+ <interface>
+ <requires lib="gtk+" version="2.16"/>
+ <!-- interface-naming-policy project-wide -->
+ <object class="GtkWindow" id="window1">
+ <signal name="delete_event" handler="window1_delete_event"/>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ </interface>
+ ')
> glade_file <- readLines( tmp )
> close( tmp ); rm( tmp )
&g...
2007 Aug 24
0
2 commits - player/swfplay.c
...24 15:23:39 2007 +0200
really make quit work
diff --git a/player/swfplay.c b/player/swfplay.c
index 7521acf..0c2ff6b 100644
--- a/player/swfplay.c
+++ b/player/swfplay.c
@@ -31,6 +31,8 @@
#include "swfdec_slow_loader.h"
+static GMainLoop *loop = NULL;
+
static void
set_title (GtkWindow *window, const char *filename)
{
@@ -62,11 +64,8 @@ static void
do_fscommand (SwfdecPlayer *player, const char *command, const char *value, gpointer window)
{
if (g_str_equal (command, "quit")) {
- static gboolean already_quit = FALSE;
- if (!already_quit) {
- gtk_main_qu...
2007 Aug 16
1
Branch 'vivi' - vivified/ui
...+0200
Set the title correctly
diff --git a/vivified/ui/main.c b/vivified/ui/main.c
index df123a9..13d03ab 100644
--- a/vivified/ui/main.c
+++ b/vivified/ui/main.c
@@ -48,6 +48,16 @@ delete_event (GtkWidget *widget, GdkEven
}
static void
+set_title (ViviApplication *app, GParamSpec *pspec, GtkWindow *window)
+{
+ const char *filename = vivi_application_get_filename (app);
+
+ if (filename == NULL)
+ filename = "Vivified";
+ gtk_window_set_title (window, filename);
+}
+
+static void
setup (const char *filename, const char *variables)
{
GtkWidget *window, *box, *widget;
@@ -...
2001 Jan 22
0
vorbiscomment gui ideas
...;source_directory>src</source_directory>
<pixmaps_directory>pixmaps</pixmaps_directory>
<language>C</language>
<gnome_support>True</gnome_support>
<gettext_support>True</gettext_support>
</project>
<widget>
<class>GtkWindow</class>
<name>user-friendly, less-flexible gui</name>
<title>window1</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>False</modal>
<allow_shrink>False</allow_shrink>
<...
2008 Aug 21
0
kickstart error on 5.2 exception
...nstance, containing members:
intf.ppw.ics.cw.handle: 150
intf.ppw.ics.cw.mainxml: <glade.XML object (PyGladeXML) at 0xec6c5a0>
intf.ppw.ics.cw.reloadRcQueued: 0
intf.ppw.ics.cw.currentWindow: Already dumped
intf.ppw.ics.cw.window: <gtk.Window object (GtkWindow) at 0xec6c550>
intf.ppw.ics.cw.installFrame: <gtk.Frame object (GtkFrame) at 0xec6c690>
intf.ppw.ics.cw.anaconda: Already dumped
intf.ppw.ics.cw.rnv: ReleaseNotesViewer instance, containing members:
intf.ppw.ics.cw.rnv.textWin: <gtk.Window object (GtkWi...
2015 Mar 23
40
[Bug 89730] New: NV50: LightDM GTK+ Greeter Background - inconsistent display
https://bugs.freedesktop.org/show_bug.cgi?id=89730
Bug ID: 89730
Summary: NV50: LightDM GTK+ Greeter Background - inconsistent
display
Product: xorg
Version: git
Hardware: Other
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau