Username: Password: Remember me
Search Criteria Advanced
Package Details

xfce4-corner-plugin 1.0.1-5
http://aquila.deus.googlepages.com/
Mac-style menubar corner plugin for xfce panel (4.4+)

unsupported :: xfce
Maintainer: None
Votes: 14

License: LGPL

Last Updated: Mon, 17 Sep 2007 04:42:31 +0000
First Submitted: Fri, 13 Oct 2006 15:53:06 +0000

Tarball :: Files :: PKGBUILD

Dependencies xfce4-panel>=4.3.99.2

Sources
xfce4-corner-plugin.c
xfce4-corner-plugin.desktop
Comment by: Alez on Sun, 10 Jan 2010 17:36:19 +0000
Hi, i get this mistake when building (with yaourt);
xfce4-corner-plugin.c: En la función ‘cornerimg_load_from_rc’:
xfce4-corner-plugin.c:93: error: ‘XfceRc’ no se declaró aquí (primer uso en esta función)
xfce4-corner-plugin.c:93: error: (Cada identificador no declarado solamente se reporta una vez
xfce4-corner-plugin.c:93: error: para cada funcion en la que aparece.)
xfce4-corner-plugin.c:93: error: ‘rc’ no se declaró aquí (primer uso en esta función)
xfce4-corner-plugin.c:93: aviso: declaración implícita de la función ‘xfce_rc_simple_open’
xfce4-corner-plugin.c:97: aviso: declaración implícita de la función ‘xfce_rc_read_int_entry’
xfce4-corner-plugin.c:99: aviso: declaración implícita de la función ‘xfce_rc_close’
xfce4-corner-plugin.c: En la función ‘cornerimg_write_rc’:
xfce4-corner-plugin.c:107: error: ‘XfceRc’ no se declaró aquí (primer uso en esta función)
xfce4-corner-plugin.c:107: error: ‘rc’ no se declaró aquí (primer uso en esta función)
xfce4-corner-plugin.c:111: aviso: declaración implícita de la función ‘xfce_rc_write_int_entry’


I also had to change NOLIBTOOL to !libtool on the pkgbuild to avoid its complaints.
Comment by: urandom on Sat, 27 Oct 2007 22:07:53 +0000
Oops, all code layout was eaten...
Comment by: urandom on Sat, 27 Oct 2007 22:06:35 +0000
Small patch to add lock option in plugin to avoid accident change of direction. This thing can be as menu item, but I'm not familiar with pure gtk, so now locking provided through middle button pressing.

--- xfce4-corner-plugin.c 2006-10-16 09:56:24.000000000 +0000
+++ src/xfce4-corner-plugin.c 2007-10-27 00:32:58.000000000 +0000
@@ -22,6 +22,7 @@
// Widgets
GtkWidget* eventbox;
GtkWidget* drawing;
+ int Locked;
}
CornerImg;

@@ -95,7 +96,7 @@
if (!rc) return;

cimg->corner_dir = xfce_rc_read_int_entry(rc, "CornerDir", 0);
-
+ cimg->Locked = xfce_rc_read_int_entry(rc, "Locked", 0);
xfce_rc_close (rc);
}

@@ -109,6 +110,7 @@
if (!rc) return;

xfce_rc_write_int_entry(rc, "CornerDir", cimg->corner_dir);
+ xfce_rc_write_int_entry(rc, "Locked", cimg->Locked);

xfce_rc_close (rc);
}
@@ -129,17 +131,22 @@
static gboolean cornerimg_toggle_dir(GtkWidget* widget, GdkEventButton* event,
CornerImg* cimg)
{
- if (event->button == 1)
- {
- cimg->corner_dir ++;
- if (cimg->corner_dir >= CORNER_DIR_COUNT)
- cimg->corner_dir = 0;
- cairo_t* cr = gdk_cairo_create (cimg->drawing->window);
- drawing_update(cimg, cr);
- cairo_destroy (cr);
- cornerimg_write_rc(cimg);
- }
- return FALSE;
+ if (event->button == 1)
+ {
+ if (cimg->Locked == 0) {
+ cimg->corner_dir ++;
+ if (cimg->corner_dir >= CORNER_DIR_COUNT)
+ cimg->corner_dir = 0;
+ cairo_t* cr = gdk_cairo_create (cimg->drawing->window);
+ drawing_update(cimg, cr);
+ cairo_destroy (cr);
+ cornerimg_write_rc(cimg);
+ }
+ } else if (event->button == 2) {
+ cimg->Locked = cimg->Locked == 0 ? 1 : 0;
+ cornerimg_write_rc(cimg);
+ }
+ return FALSE;
}

static void cornerimg_construct(XfcePanelPlugin* plugin)
Comment by: aquila_deus on Sun, 17 Jun 2007 15:24:44 +0000
1.0.1-4:
- remove gcc option -Werror (treat warning as error)
Comment by: Sachiel on Tue, 12 Jun 2007 22:12:46 +0000
Build failed, I met dependencies:

==> Starting build()...
cc1: warnings being treated as errors
In file included from /usr/include/glib-2.0/glib/gstring.h:32,
from /usr/include/glib-2.0/glib/giochannel.h:32,
from /usr/include/glib-2.0/glib.h:47,
from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
from /usr/include/gtk-2.0/gdk/gdkcolor.h:31,
from /usr/include/gtk-2.0/gdk/gdkcairo.h:23,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from xfce4-corner-plugin.c:1:
/usr/include/glib-2.0/glib/gutils.h:277: warning: C99 inline functions are not supported; using GNU89
/usr/include/glib-2.0/glib/gutils.h:277: warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute
/usr/include/glib-2.0/glib/gutils.h:291: warning: C99 inline functions are not supported; using GNU89
/usr/include/glib-2.0/glib/gutils.h:304: warning: C99 inline functions are not supported; using GNU89
/usr/include/glib-2.0/glib/gutils.h:322: warning: C99 inline functions are not supported; using GNU89
/usr/include/glib-2.0/glib/gutils.h:330: warning: C99 inline functions are not supported; using GNU89
/usr/include/glib-2.0/glib/gutils.h:347: warning: C99 inline functions are not supported; using GNU89
/usr/include/glib-2.0/glib/gutils.h:356: warning: C99 inline functions are not supported; using GNU89
==> ERROR: Build Failed. Aborting...
Comment by: aquila_deus on Sat, 23 Dec 2006 04:04:11 +0000
1.0.11-2:
- fix xfce dependencies
Comment by: aquila_deus on Mon, 16 Oct 2006 10:07:12 +0000
1.0.1:
- render by cairo instead of simple images, taking color from current gtk theme
- all 4 corners are supported now.
Comment by: aquila_deus on Sat, 14 Oct 2006 06:14:54 +0000
hi bountykiller. I\'ll make the building instructions in pkgbuild more portable or use cmake, but I *HATE* GNU\'s automake and libtool and hope them just die :)
Comment by: bountykiller on Fri, 13 Oct 2006 22:20:40 +0000
It would be nice is you where using the common gnu build system, with ./configure , make , make install, so that it can works with other distro.
I can help you if you want.
Comment by: aquila_deus on Fri, 13 Oct 2006 15:53:06 +0000
1.0.0:
- FIRST RELEASE!
- Click on the applet to change direction (left or right). It will be saved automatically.

v1.6.0