[turbine] Add missing Private suffix to private struct typedef
- From: Thomas Wood <thos src gnome org>
- To: svn-commits-list gnome org
- Subject: [turbine] Add missing Private suffix to private struct typedef
- Date: Tue, 2 Jun 2009 06:12:05 -0400 (EDT)
commit 2f9c7980dd629d7fd4ee313b0d64645b9e89f1d7
Author: Thomas Wood <thomas wood intel com>
Date: Tue Jun 2 11:12:08 2009 +0100
Add missing Private suffix to private struct typedef
---
src/turbine/__init__.py | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/turbine/__init__.py b/src/turbine/__init__.py
index 88b8a9c..84f6e9e 100755
--- a/src/turbine/__init__.py
+++ b/src/turbine/__init__.py
@@ -107,7 +107,7 @@ def handle_post(button, ui):
extra.append(template.private_template)
data['priv_init'] = " self->priv = " + data['object_upper'] + "_PRIVATE (self);"
data['priv_member'] = " " + data['class_camel'] + "Private *priv;"
- data['priv_typedef'] = "typedef struct _" + data['class_camel'] + " " + data['class_camel'] + "Private;"
+ data['priv_typedef'] = "typedef struct _" + data['class_camel'] + "Private " + data['class_camel'] + "Private;"
else:
data['priv_init'] = "";
data['priv_member'] = "";
@@ -196,6 +196,9 @@ def guess_parent_params (entry, ui):
ui.get_object ('parent').set_text (s.upper())
+def guessed_entry_changed (entry, ui):
+ entry.set_secondary_icon (gtk.STOCK_UNDO)
+
def about_button_clicked_cb (button, ui):
about = gtk.AboutDialog()
@@ -242,5 +245,11 @@ def main(argv = sys.argv, stdout=sys.stdout, stderr=sys.stderr):
ui.get_object ('class_camel').connect ('changed', guess_class_params, ui)
ui.get_object ('parent_camel').connect ('changed', guess_parent_params, ui)
+ ui.get_object ('package_upper').connect ('changed', guessed_entry_changed, ui)
+ ui.get_object ('object_upper').connect ('changed', guessed_entry_changed, ui)
+ ui.get_object ('class_lower').connect ('changed', guessed_entry_changed, ui)
+ ui.get_object ('parent').connect ('changed', guessed_entry_changed, ui)
+
+
gtk.main()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]