+2009-08-13 Jim Evins <evins@snaught.com>
+
+ * src/color-combo-color-menu-item.c:
+ (gl_color_combo_color_menu_item_init),
+ (gl_color_combo_color_menu_item_new),
+ (gl_color_combo_color_menu_item_set_color):
+ Explicitly request size of menu item and enlarge color swatch.
+
2009-08-12 Jim Evins <evins@snaught.com>
* src/label-text.c: (buffer_changed_cb), (draw_object),
/* Private macros and constants. */
/*===========================================*/
+#define SIZE 20
+#define PAD 5
+
/*===========================================*/
/* Private types */
gdouble h,
guint color);
+
/****************************************************************************/
/* Boilerplate Object stuff. */
/****************************************************************************/
gl_color_combo_color_menu_item_init (glColorComboColorMenuItem *this)
{
this->priv = g_new0 (glColorComboColorMenuItemPrivate, 1);
+
+ gtk_widget_set_size_request (GTK_MENU_ITEM (this), SIZE + 2*PAD, SIZE + 2*PAD);
}
this->priv->id = id;
- pixbuf = create_color_pixbuf (16, 16, color);
+ pixbuf = create_color_pixbuf (SIZE, SIZE, color);
gtk_container_add (GTK_CONTAINER (this),
gtk_image_new_from_pixbuf (pixbuf));
this->priv->id = id;
- pixbuf = create_color_pixbuf (16, 16, color);
+ pixbuf = create_color_pixbuf (SIZE, SIZE, color);
gtk_image_set_from_pixbuf (GTK_IMAGE (gtk_bin_get_child (GTK_BIN (this))),
pixbuf);