[Pkg-wmaker-commits] [wmstickynotes] 05/81: Fixed transparency for resize button.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Tue Aug 25 02:33:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmstickynotes.
commit bf0d9bf48a60b92400c9efb75a7ba1073c8a6cfa
Author: hnc <hnc at 7fc852e4-12a7-4f5b-bad7-374d67da4d19>
Date: Sat Feb 14 16:53:59 2009 +0000
Fixed transparency for resize button.
---
resize_button.xpm | 22 ++++++++++------------
wmstickynotes.c | 4 +++-
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/resize_button.xpm b/resize_button.xpm
index cf646d2..825eba3 100644
--- a/resize_button.xpm
+++ b/resize_button.xpm
@@ -1,15 +1,13 @@
/* XPM */
static char * resize_button_xpm[] = {
-"10 10 2 1",
-" c #FFFFFF",
+"8 8 2 1",
+" c None",
". c #000000",
-" .",
-" . ",
-" . ",
-" . .",
-" . . ",
-" . . ",
-" . . .",
-" . . . ",
-" . . . ",
-". . . ."};
+" .",
+" . ",
+" . ",
+" . .",
+" . . ",
+" . . ",
+" . . .",
+". . . "};
diff --git a/wmstickynotes.c b/wmstickynotes.c
index 377015f..ca52e05 100644
--- a/wmstickynotes.c
+++ b/wmstickynotes.c
@@ -115,6 +115,7 @@ void create_note(Note *old_note, int color)
GtkWidget *resize_button_box;
GdkPixmap *resize_button_pixmap;
GdkBitmap *resize_button_mask;
+ GdkGC *gc;
GdkColor gcolor;
Note *note;
@@ -144,7 +145,7 @@ void create_note(Note *old_note, int color)
top_bar_box = gtk_event_box_new();
gtk_widget_set_size_request(top_bar, -1, 10);
bottom_bar = gtk_label_new("");
- gtk_widget_set_size_request(bottom_bar, -1, 10);
+ gtk_widget_set_size_request(bottom_bar, -1, 8);
delete_button_pixmap = gdk_pixmap_colormap_create_from_xpm_d(NULL, colormap, &delete_button_mask, NULL, delete_button_xpm);
delete_button = gtk_image_new_from_pixmap(delete_button_pixmap, delete_button_mask);
@@ -161,6 +162,7 @@ void create_note(Note *old_note, int color)
gdk_color_parse(color_schemes[note->color].background, &gcolor);
gtk_widget_modify_base(text_widget, GTK_STATE_NORMAL, &gcolor);
gtk_widget_modify_bg(window, GTK_STATE_NORMAL, &gcolor);
+ gtk_widget_modify_bg(resize_button_box, GTK_STATE_NORMAL, &gcolor);
gtk_container_add(GTK_CONTAINER(window), vbox);
gtk_container_add(GTK_CONTAINER(top_bar_box), top_bar);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmstickynotes.git
More information about the Pkg-wmaker-commits
mailing list