gucharmap r1822 - trunk/gucharmap
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gucharmap r1822 - trunk/gucharmap
- Date: Mon, 16 Jun 2008 14:04:34 +0000 (UTC)
Author: chpe
Date: Mon Jun 16 14:04:34 2008
New Revision: 1822
URL: http://svn.gnome.org/viewvc/gucharmap?rev=1822&view=rev
Log:
Bug 349664 â Add padding to Copy button
Modified:
trunk/gucharmap/gucharmap-window.c
Modified: trunk/gucharmap/gucharmap-window.c
==============================================================================
--- trunk/gucharmap/gucharmap-window.c (original)
+++ trunk/gucharmap/gucharmap-window.c Mon Jun 16 14:04:34 2008
@@ -811,10 +811,7 @@
static void
gucharmap_window_init (GucharmapWindow *guw)
{
- GtkWidget *big_vbox;
- GtkWidget *hbox;
- GtkWidget *button;
- GtkWidget *label;
+ GtkWidget *big_vbox, *hbox, *bbox, *button, *label;
GucharmapChartable *chartable;
/* tooltips are NULL because they are never actually shown in the program */
const GtkActionEntry menu_entries[] =
@@ -953,10 +950,14 @@
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
+ bbox = gtk_hbutton_box_new ();
+
button = gtk_button_new_from_stock (GTK_STOCK_COPY);
gtk_widget_set_tooltip_text (button, _("Copy to the clipboard."));
g_signal_connect (G_OBJECT (button), "clicked",
G_CALLBACK (edit_copy), guw);
+ gtk_box_pack_start (GTK_BOX (bbox), button, FALSE, FALSE, 0);
+ gtk_widget_show (button);
gtk_widget_set_sensitive (button, FALSE);
guw->text_to_copy_entry = gtk_entry_new ();
@@ -967,8 +968,8 @@
gtk_box_pack_start (GTK_BOX (hbox), guw->text_to_copy_entry, TRUE, TRUE, 0);
gtk_widget_show (guw->text_to_copy_entry);
- gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0);
- gtk_widget_show (button);
+ gtk_box_pack_end (GTK_BOX (hbox), bbox, FALSE, FALSE, 0);
+ gtk_widget_show (bbox);
gtk_box_pack_start (GTK_BOX (big_vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]