rpms/corrida/devel corrida-0.96-11-count.patch, NONE, 1.1 corrida.spec, 1.3, 1.4
Lubomir Rintel
lkundrak at fedoraproject.org
Fri Apr 10 10:10:22 UTC 2009
- Previous message (by thread): rpms/wireshark/F-10 .cvsignore, 1.24, 1.25 sources, 1.24, 1.25 wireshark.spec, 1.46, 1.47
- Next message (by thread): rpms/wireshark/F-9 .cvsignore, 1.22, 1.23 sources, 1.22, 1.23 wireshark.spec, 1.39, 1.40
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: lkundrak
Update of /cvs/pkgs/rpms/corrida/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv27209
Modified Files:
corrida.spec
Added Files:
corrida-0.96-11-count.patch
Log Message:
* Fri Apr 10 2009 Lubomir Rintel (Fedora Astronomy) <lkundrak at v3.sk> - 0.96.11-4
- Automatically increment the meteor number (#494526)
corrida-0.96-11-count.patch:
--- NEW FILE corrida-0.96-11-count.patch ---
Automatically increase meteor number.
https://bugzilla.redhat.com/show_bug.cgi?id=494526
Lubomir Rintel <lkundrak at v3.sk>
diff -urp corrida-0.96-11/corrida/gui_callbacks.c corrida-0.96-11.count/corrida/gui_callbacks.c
--- corrida-0.96-11/corrida/gui_callbacks.c 2007-06-04 21:27:21.000000000 +0200
+++ corrida-0.96-11.count/corrida/gui_callbacks.c 2009-04-10 12:02:32.000000000 +0200
@@ -834,6 +834,12 @@ gint charts_accept_button_pressed_cb( Gt
corrida_error_box (GTK_WINDOW (charts_window), "Please check the meteor number you entered. More info on statusbar");
} else {
current_meteor.met_no = atoi (entry_text);
+
+ /* increment the meteor number */
+ snprintf (entry_text, sizeof(entry_text), "%i", current_meteor.met_no + 1);
+ entry_text[10] = '\0';
+ gtk_entry_set_text (GTK_ENTRY (num_pad_entry), entry_text);
+
add_charts_meteor_record (current_meteor);
refresh_chart ();
diff -urp corrida-0.96-11/corrida/gui_charts.c corrida-0.96-11.count/corrida/gui_charts.c
--- corrida-0.96-11/corrida/gui_charts.c 2007-06-04 21:27:21.000000000 +0200
+++ corrida-0.96-11.count/corrida/gui_charts.c 2009-04-10 12:03:52.000000000 +0200
@@ -397,6 +397,7 @@ GtkWidget *create_charts_tools_num_pad(
*/
gtk_table_attach_defaults (GTK_TABLE (num_pad), num_pad_entry,
1, 3, 0, 1);
+ gtk_entry_set_text (GTK_ENTRY (num_pad_entry), "1");
gtk_widget_show (num_pad_entry);
/* '0' button */
@@ -1084,10 +1085,6 @@ void charts_clear_entries( void )
}
}
- /* clear meteor number entry */
- if (num_pad_entry != NULL)
- gtk_entry_set_text (GTK_ENTRY (num_pad_entry), "\0");
-
/* clear current meteor data */
current_meteor.met_no = -1;
current_meteor.map_no = -1;
Index: corrida.spec
===================================================================
RCS file: /cvs/pkgs/rpms/corrida/devel/corrida.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- corrida.spec 24 Mar 2009 17:09:34 -0000 1.3
+++ corrida.spec 10 Apr 2009 10:09:51 -0000 1.4
@@ -3,7 +3,7 @@
Name: corrida
Version: %{version_major}.%{version_minor}
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Application for archivation of meteor observations
Group: Amusements/Graphics
@@ -11,6 +11,7 @@
URL: http://corrida.pkim.org/
Source0: http://corrida.pkim.org/releases/corrida-%{version_major}-%{version_minor}.tar.gz
Source1: corrida.desktop
+Patch0: corrida-0.96-11-count.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gtk2-devel
@@ -24,6 +25,7 @@
%prep
%setup -q -n corrida-%{version_major}-%{version_minor}
+%patch0 -p1 -b .count
%build
@@ -63,6 +65,9 @@
%changelog
+* Fri Apr 10 2009 Lubomir Rintel (Fedora Astronomy) <lkundrak at v3.sk> - 0.96.11-4
+- Automatically increment the meteor number (#494526)
+
* Tue Mar 24 2009 Lubomir Rintel (Fedora Astronomy) <lkundrak at v3.sk> - 0.96.11-3
- Fix the menu categories
- Previous message (by thread): rpms/wireshark/F-10 .cvsignore, 1.24, 1.25 sources, 1.24, 1.25 wireshark.spec, 1.46, 1.47
- Next message (by thread): rpms/wireshark/F-9 .cvsignore, 1.22, 1.23 sources, 1.22, 1.23 wireshark.spec, 1.39, 1.40
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list