[Goodies-commits] r6801 - in xfce4-notes-plugin/trunk: . panel-plugin
Mike Massonnet
mmassonnet at xfce.org
Thu Feb 26 22:46:38 CET 2009
Author: mmassonnet
Date: 2009-02-26 21:46:38 +0000 (Thu, 26 Feb 2009)
New Revision: 6801
Modified:
xfce4-notes-plugin/trunk/ChangeLog
xfce4-notes-plugin/trunk/panel-plugin/notes.c
xfce4-notes-plugin/trunk/panel-plugin/panel-plugin.c
Log:
Minor look-n-feel changes
Modified: xfce4-notes-plugin/trunk/ChangeLog
===================================================================
--- xfce4-notes-plugin/trunk/ChangeLog 2009-02-26 13:09:21 UTC (rev 6800)
+++ xfce4-notes-plugin/trunk/ChangeLog 2009-02-26 21:46:38 UTC (rev 6801)
@@ -1,3 +1,16 @@
+2009-02-26 Mike Massonnet <mmassonnet at xfce.org>
+
+Minor look-n-feel changes
+ * panel-plugin/panel-plugin.c(notes_plugin_configure):
+ - Put the dialog inside a GtkWindowGroup to keep the button in the
+ panel plugin clickable
+ * panel-plugin/notes.c(notes_window_new_with_label):
+ - Set the shadow type to NONE for the GtkFrame to keep a singular
+ look between different theme engines
+ * panel-plugin/notes.c(notes_window_motion_event),
+ panel-plugin/notes.c(notes_window_button_event):
+ - Set bottom "margin" for the mouse cursor to 3 pixels
+
2009-02-25 Mike Massonnet <mmassonnet at xfce.org>
Draw the arrow button only with the state ACTIVE
Modified: xfce4-notes-plugin/trunk/panel-plugin/notes.c
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/notes.c 2009-02-26 13:09:21 UTC (rev 6800)
+++ xfce4-notes-plugin/trunk/panel-plugin/notes.c 2009-02-26 21:46:38 UTC (rev 6801)
@@ -211,7 +211,7 @@
/* Frame */
notes_window->frame = gtk_frame_new (NULL);
- gtk_frame_set_shadow_type (GTK_FRAME (notes_window->frame), GTK_SHADOW_OUT);
+ gtk_frame_set_shadow_type (GTK_FRAME (notes_window->frame), GTK_SHADOW_NONE);
style = gtk_widget_get_modifier_style (notes_window->frame);
style->xthickness = 1;
style->ythickness = 3;
@@ -1135,7 +1135,7 @@
if (event->x > 2 &&
event->y > 2 &&
event->x < alloc.width - 2 &&
- event->y < alloc.height - 2)
+ event->y < alloc.height - 3)
return FALSE;
TRACE ("Window Motion: (%.0fx%.0f) %dx%d", event->x, event->y, alloc.width, alloc.height);
@@ -1183,7 +1183,7 @@
if (event->x > 2 &&
event->y > 2 &&
event->x < alloc.width - 2 &&
- event->y < alloc.height - 2)
+ event->y < alloc.height - 3)
return FALSE;
/* Top Left corner */
Modified: xfce4-notes-plugin/trunk/panel-plugin/panel-plugin.c
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/panel-plugin.c 2009-02-26 13:09:21 UTC (rev 6800)
+++ xfce4-notes-plugin/trunk/panel-plugin/panel-plugin.c 2009-02-26 21:46:38 UTC (rev 6801)
@@ -251,12 +251,16 @@
static void
notes_plugin_configure (NotesPlugin *notes_plugin)
{
+ GtkWindowGroup *group;
GtkWidget *dialog;
gint result;
xfce_panel_plugin_block_menu (notes_plugin->panel_plugin);
dialog = prop_dialog_new (notes_plugin);
+ group = gtk_window_group_new ();
+ gtk_window_group_add_window (group, GTK_WINDOW (dialog));
+
while (1)
{
result = gtk_dialog_run (GTK_DIALOG (dialog));
@@ -270,6 +274,7 @@
break;
}
+ g_object_unref (group);
gtk_widget_destroy (dialog);
xfce_panel_plugin_unblock_menu (notes_plugin->panel_plugin);
}
More information about the Goodies-commits
mailing list