Patch flickr export for setting private/public/family/friend permissions



Hey,
Here's a patch that adds support for setting flickr export permissions
as public/private, family, or friend when uploading files.

Mike

? DoxygenConfig.conf
? doxygen
? f-spot.desktop
? f-spot.desktop.in
? src/f-spot.glade.xml
Index: src/FlickrExport.cs
===================================================================
RCS file: /cvs/gnome/f-spot/src/FlickrExport.cs,v
retrieving revision 1.13
diff -r1.13 FlickrExport.cs
8a9,11
> 		[Glade.Widget] Gtk.CheckButton ispublic_check;
> 		[Glade.Widget] Gtk.CheckButton isfamily_check;
> 		[Glade.Widget] Gtk.CheckButton isfriend_check;
11a15
> 
21a26,29
> 		
> 		bool is_public = false;
> 		bool is_family = false;
> 		bool is_friend = false;
99c107
< 					string id = fr.Upload (photo, scale, size);
---
> 					string id = fr.Upload (photo, scale, size, is_public, is_family, is_friend);
128a137,138
> 
> 
135a146,149
>                         is_public = ispublic_check.Active;
>                         is_family = isfamily_check.Active;
>                         is_friend = isfriend_check.Active;
> 
Index: src/FlickrRemote.cs
===================================================================
RCS file: /cvs/gnome/f-spot/src/FlickrRemote.cs,v
retrieving revision 1.8
diff -r1.8 FlickrRemote.cs
37c37
< 		return Upload (photo, false, 0);
---
> 		return Upload (photo, false, 0, true, false, false);
40c40
< 	public string Upload (Photo photo, bool scale, int size)
---
> 	public string Upload (Photo photo, bool scale, int size, bool is_public, bool is_family, bool is_friend)
69a70,73
> 				client.Add("is_public", System.Convert.ToString(System.Convert.ToInt32(is_public)));
> 				client.Add("is_family", System.Convert.ToString(System.Convert.ToInt32(is_family)));
> 				client.Add("is_friend", System.Convert.ToString(System.Convert.ToInt32(is_friend)));
> 			
Index: src/f-spot.glade
===================================================================
RCS file: /cvs/gnome/f-spot/src/f-spot.glade,v
retrieving revision 1.95
diff -r1.95 f-spot.glade
6533a6534,6676
> 
> 	      <child>
> 		<widget class="GtkFrame" id="frame41">
> 		  <property name="visible">True</property>
> 		  <property name="label_xalign">0</property>
> 		  <property name="label_yalign">0.5</property>
> 		  <property name="shadow_type">GTK_SHADOW_NONE</property>
> 
> 		  <child>
> 		    <widget class="GtkAlignment" id="alignment49">
> 		      <property name="visible">True</property>
> 		      <property name="xalign">0.5</property>
> 		      <property name="yalign">0.5</property>
> 		      <property name="xscale">1</property>
> 		      <property name="yscale">1</property>
> 		      <property name="top_padding">0</property>
> 		      <property name="bottom_padding">0</property>
> 		      <property name="left_padding">12</property>
> 		      <property name="right_padding">0</property>
> 
> 		      <child>
> 			<widget class="GtkAlignment" id="alignment50">
> 			  <property name="visible">True</property>
> 			  <property name="xalign">0.5</property>
> 			  <property name="yalign">0.5</property>
> 			  <property name="xscale">1</property>
> 			  <property name="yscale">1</property>
> 			  <property name="top_padding">0</property>
> 			  <property name="bottom_padding">0</property>
> 			  <property name="left_padding">12</property>
> 			  <property name="right_padding">0</property>
> 
> 			  <child>
> 			    <widget class="GtkVBox" id="vbox65">
> 			      <property name="visible">True</property>
> 			      <property name="homogeneous">False</property>
> 			      <property name="spacing">6</property>
> 
> 			      <child>
> 				<widget class="GtkCheckButton" id="ispublic_check">
> 				  <property name="visible">True</property>
> 				  <property name="can_focus">True</property>
> 				  <property name="label" translatable="yes">Public</property>
> 				  <property name="use_underline">True</property>
> 				  <property name="relief">GTK_RELIEF_NORMAL</property>
> 				  <property name="focus_on_click">True</property>
> 				  <property name="active">False</property>
> 				  <property name="inconsistent">False</property>
> 				  <property name="draw_indicator">True</property>
> 				</widget>
> 				<packing>
> 				  <property name="padding">0</property>
> 				  <property name="expand">False</property>
> 				  <property name="fill">False</property>
> 				</packing>
> 			      </child>
> 
> 			      <child>
> 				<widget class="GtkVBox" id="vbox66">
> 				  <property name="visible">True</property>
> 				  <property name="homogeneous">False</property>
> 				  <property name="spacing">6</property>
> 
> 				  <child>
> 				    <widget class="GtkCheckButton" id="isfamily_check">
> 				      <property name="visible">True</property>
> 				      <property name="can_focus">True</property>
> 				      <property name="label" translatable="yes">Family</property>
> 				      <property name="use_underline">True</property>
> 				      <property name="relief">GTK_RELIEF_NORMAL</property>
> 				      <property name="focus_on_click">True</property>
> 				      <property name="active">False</property>
> 				      <property name="inconsistent">False</property>
> 				      <property name="draw_indicator">True</property>
> 				    </widget>
> 				    <packing>
> 				      <property name="padding">0</property>
> 				      <property name="expand">False</property>
> 				      <property name="fill">False</property>
> 				    </packing>
> 				  </child>
> 
> 				  <child>
> 				    <widget class="GtkCheckButton" id="isfriend_check">
> 				      <property name="visible">True</property>
> 				      <property name="can_focus">True</property>
> 				      <property name="label" translatable="yes">Friends</property>
> 				      <property name="use_underline">True</property>
> 				      <property name="relief">GTK_RELIEF_NORMAL</property>
> 				      <property name="focus_on_click">True</property>
> 				      <property name="active">False</property>
> 				      <property name="inconsistent">False</property>
> 				      <property name="draw_indicator">True</property>
> 				    </widget>
> 				    <packing>
> 				      <property name="padding">0</property>
> 				      <property name="expand">False</property>
> 				      <property name="fill">False</property>
> 				    </packing>
> 				  </child>
> 				</widget>
> 				<packing>
> 				  <property name="padding">0</property>
> 				  <property name="expand">False</property>
> 				  <property name="fill">False</property>
> 				</packing>
> 			      </child>
> 			    </widget>
> 			  </child>
> 			</widget>
> 		      </child>
> 		    </widget>
> 		  </child>
> 
> 		  <child>
> 		    <widget class="GtkLabel" id="label154">
> 		      <property name="visible">True</property>
> 		      <property name="label" translatable="yes">&lt;b&gt;Viewing Permissions&lt;/b&gt;</property>
> 		      <property name="use_underline">False</property>
> 		      <property name="use_markup">True</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>
> 		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
> 		      <property name="width_chars">-1</property>
> 		      <property name="single_line_mode">False</property>
> 		      <property name="angle">0</property>
> 		    </widget>
> 		    <packing>
> 		      <property name="type">label_item</property>
> 		    </packing>
> 		  </child>
> 		</widget>
> 		<packing>
> 		  <property name="padding">0</property>
> 		  <property name="expand">True</property>
> 		  <property name="fill">True</property>
> 		</packing>
> 	      </child>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]