xffm small gui changes

edscott wilson garcia edscott at imp.mx
Mon Jan 20 17:50:37 CET 2003


Have you commited these changes to CVS? Please do.

Edscott

El vie, 17-01-2003 a las 16:33, Jens Luedicke escribió:
> Hi ...
> 
> I found a small cosmetic issue in xffm and changed it.
> 
> I removed two labels from the glade project file and used the
> checkbutton's gtk_button_set_label() functions for displaying
> the text that was displayed in those two extra lables. 
> 
> A little less code :)
> 
> -- 
> Jens Luedicke <jens at irs-net.com>
> 
> "Never offend people with style when you can offend them with
> substance."
> --Sam Brown
> 
> 
> ----
> 

> Index: xffm/xffm.glade
> ===================================================================
> RCS file: /cvsroot/xfce/xfce-devel/xffm/xffm.glade,v
> retrieving revision 1.11
> diff -r1.11 xffm.glade
> 372,373c372
> < 			      <property name="stock">gnome-stock-text-numbered-list</property>
> < 			      <property name="icon_size">1</property>
> ---
> > 			      <property name="pixbuf">gnome-stock-text-numbered-list</property>
> 2155,2176d2153
> < 	    <widget class="GtkLabel" id="checklabel2">
> < 	      <property name="visible">True</property>
> < 	      <property name="label" translatable="yes">label17</property>
> < 	      <property name="use_underline">False</property>
> < 	      <property name="use_markup">False</property>
> < 	      <property name="justify">GTK_JUSTIFY_LEFT</property>
> < 	      <property name="wrap">False</property>
> < 	      <property name="selectable">False</property>
> < 	      <property name="xalign">0.5</property>
> < 	      <property name="yalign">0.5</property>
> < 	      <property name="xpad">0</property>
> < 	      <property name="ypad">0</property>
> < 	    </widget>
> < 	    <packing>
> < 	      <property name="padding">0</property>
> < 	      <property name="expand">False</property>
> < 	      <property name="fill">False</property>
> < 	      <property name="pack_type">GTK_PACK_END</property>
> < 	    </packing>
> < 	  </child>
> < 
> < 	  <child>
> 2180c2157
> < 	      <property name="label" translatable="yes"></property>
> ---
> > 	      <property name="label" translatable="yes">checkbutton2</property>
> 2196,2217d2172
> < 	    <widget class="GtkLabel" id="checklabel1">
> < 	      <property name="visible">True</property>
> < 	      <property name="label" translatable="yes">label16</property>
> < 	      <property name="use_underline">False</property>
> < 	      <property name="use_markup">False</property>
> < 	      <property name="justify">GTK_JUSTIFY_LEFT</property>
> < 	      <property name="wrap">False</property>
> < 	      <property name="selectable">False</property>
> < 	      <property name="xalign">0.5</property>
> < 	      <property name="yalign">0.5</property>
> < 	      <property name="xpad">0</property>
> < 	      <property name="ypad">0</property>
> < 	    </widget>
> < 	    <packing>
> < 	      <property name="padding">0</property>
> < 	      <property name="expand">False</property>
> < 	      <property name="fill">False</property>
> < 	      <property name="pack_type">GTK_PACK_END</property>
> < 	    </packing>
> < 	  </child>
> < 
> < 	  <child>
> 2221c2176
> < 	      <property name="label" translatable="yes"></property>
> ---
> > 	      <property name="label" translatable="yes">checkbutton1</property>
> 2569,2572d2523
> < 	      <property name="activity_mode">False</property>
> < 	      <property name="show_text">False</property>
> < 	      <property name="text_xalign">0.5</property>
> < 	      <property name="text_yalign">0.5</property>
> 3085,3086d3035
> < 	  <property name="tab_hborder">2</property>
> < 	  <property name="tab_vborder">2</property>
> ----
> 

> Index: xffm/src/input.c
> ===================================================================
> RCS file: /cvsroot/xfce/xfce-devel/xffm/src/input.c,v
> retrieving revision 1.12
> diff -r1.12 input.c
> 64c64,65
> < 	GtkLabel *label,*check_label1,*check_label2;
> ---
> > 	GtkButton *check_button1, *check_button2;
> > 	GtkLabel *label;
> 78d78
> < 	hideit(tree_details->window,"checklabel1"); 
> 80d79
> < 	hideit(tree_details->window,"checklabel2"); 
> 83,89c82,87
> < 	w=(GtkToggleButton *)lookup_widget(tree_details->window,"checkbutton1");
> < 	if (gtk_toggle_button_get_active(w))gtk_toggle_button_set_active (w,FALSE);
> < 	w=(GtkToggleButton *)lookup_widget(tree_details->window, "checkbutton2");
> < 	if (gtk_toggle_button_get_active(w)) gtk_toggle_button_set_active (w,FALSE);
> < 	check_label1=(GtkLabel *)lookup_widget(tree_details->window, "checklabel1");
> < 	check_label2=(GtkLabel *)lookup_widget(tree_details->window, "checklabel2");
> < 		
> ---
> > 	check_button1 = (GtkCheckButton *)lookup_widget(tree_details->window,"checkbutton1");
> > 	if (gtk_toggle_button_get_active(check_button1))gtk_toggle_button_set_active (check_button1,FALSE);
> > 
> > 	check_button2 =(GtkCheckButton *)lookup_widget(tree_details->window, "checkbutton2");
> > 	if (gtk_toggle_button_get_active(check_button2)) gtk_toggle_button_set_active (check_button2,FALSE);
> > 
> 169,170c167
> < 			gtk_label_set_text (check_label1,_("Directory"));
> < 			showit(tree_details->window,"checklabel1"); 
> ---
> > 			gtk_button_set_label (check_button1,_("Directory"));
> 193,194c190
> < 					gtk_label_set_text (check_label2,_("Remember"));
> < 			  		showit(tree_details->window,"checklabel2");
> ---
> > 					gtk_button_set_label (check_button2,_("Remember"));
> 202,203c198
> < 			gtk_label_set_text (check_label1,_("In terminal"));		
> < 			showit(tree_details->window,"checklabel1");
> ---
> > 			gtk_button_set_label (check_button1,_("In terminal"));		





More information about the Xfce-dev mailing list