summaryrefslogtreecommitdiff
path: root/portato/gui
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-06-23 22:30:43 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-06-23 22:30:43 +0200
commit0392a7dcbaa08cbc73e091422bf6f68dbfa8d7f6 (patch)
tree9a69166edb21935ebfb8ae8a8afbae6f0c50868f /portato/gui
parentf5c988728165581fab7331a706423c1c0d809688 (diff)
downloadportato-0392a7dcbaa08cbc73e091422bf6f68dbfa8d7f6.tar.gz
portato-0392a7dcbaa08cbc73e091422bf6f68dbfa8d7f6.tar.bz2
portato-0392a7dcbaa08cbc73e091422bf6f68dbfa8d7f6.zip
Finished send_mail work
Diffstat (limited to '')
-rw-r--r--portato/gui/templates/MailInfoWindow.glade117
-rw-r--r--portato/gui/windows/mailinfo.py3
2 files changed, 68 insertions, 52 deletions
diff --git a/portato/gui/templates/MailInfoWindow.glade b/portato/gui/templates/MailInfoWindow.glade
index 6d72295..743c81c 100644
--- a/portato/gui/templates/MailInfoWindow.glade
+++ b/portato/gui/templates/MailInfoWindow.glade
@@ -1,10 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--Generated with glade3 3.4.4 on Fri Jun 20 18:22:54 2008 -->
+<!--Generated with glade3 3.4.4 on Mon Jun 23 22:23:44 2008 -->
<glade-interface>
<widget class="GtkWindow" id="MailInfoWindow">
<property name="title" translatable="yes">Send Bug Mail ...</property>
<property name="window_position">GTK_WIN_POS_CENTER</property>
+ <property name="default_width">450</property>
+ <property name="default_height">230</property>
<property name="destroy_with_parent">True</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<property name="skip_taskbar_hint">True</property>
@@ -17,41 +19,57 @@
<property name="visible">True</property>
<property name="n_rows">4</property>
<property name="n_columns">2</property>
+ <property name="row_spacing">10</property>
<child>
- <widget class="GtkLabel" id="label3">
+ <widget class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;&lt;u&gt;Additional Information&lt;/u&gt;&lt;/b&gt;
-
-(all optional)</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
+ <property name="can_focus">True</property>
+ <property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
+ <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
+ <property name="shadow_type">GTK_SHADOW_IN</property>
+ <child>
+ <widget class="GtkTextView" id="commentEntry">
+ <property name="height_request">50</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ </widget>
+ </child>
</widget>
<packing>
+ <property name="left_attach">1</property>
<property name="right_attach">2</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
+ <property name="x_padding">5</property>
</packing>
</child>
<child>
- <widget class="GtkEntry" id="nameEntry">
+ <widget class="GtkLabel" id="label4">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Comments /
+what did you do to hit the bug?</property>
</widget>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="x_padding">5</property>
</packing>
</child>
<child>
- <widget class="GtkEntry" id="mailEntry">
+ <widget class="GtkLabel" id="label1">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Name:</property>
+ <property name="single_line_mode">True</property>
</widget>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options">GTK_FILL</property>
+ <property name="x_padding">5</property>
</packing>
</child>
<child>
@@ -64,62 +82,58 @@
<packing>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options">GTK_FILL</property>
<property name="x_padding">5</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label1">
+ <widget class="GtkEntry" id="mailEntry">
<property name="visible">True</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Name:</property>
- <property name="single_line_mode">True</property>
+ <property name="can_focus">True</property>
</widget>
<packing>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options">GTK_FILL</property>
<property name="x_padding">5</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label4">
+ <widget class="GtkEntry" id="nameEntry">
<property name="visible">True</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Comments /
-what did you do to hit the bug?</property>
+ <property name="can_focus">True</property>
</widget>
<packing>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="y_options">GTK_FILL</property>
<property name="x_padding">5</property>
</packing>
</child>
<child>
- <widget class="GtkFrame" id="frame1">
+ <widget class="GtkLabel" id="label3">
<property name="visible">True</property>
- <property name="label_xalign">0</property>
- <property name="label_yalign">0</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
- <child>
- <widget class="GtkTextView" id="commentEntry">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- </widget>
- </child>
- <child>
- <placeholder/>
- <packing>
- <property name="type">label_item</property>
- </packing>
- </child>
+ <property name="label" translatable="yes">&lt;b&gt;&lt;u&gt;Additional Information&lt;/u&gt;&lt;/b&gt;
+
+(all optional)</property>
+ <property name="use_markup">True</property>
+ <property name="justify">GTK_JUSTIFY_CENTER</property>
</widget>
<packing>
- <property name="left_attach">1</property>
<property name="right_attach">2</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
+ <property name="y_options">GTK_FILL</property>
</packing>
</child>
</widget>
+ <packing>
+ <property name="padding">5</property>
+ </packing>
</child>
<child>
<widget class="GtkHButtonBox" id="hbuttonbox1">
@@ -176,6 +190,9 @@ what did you do to hit the bug?</property>
</child>
</widget>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="padding">5</property>
<property name="position">1</property>
</packing>
</child>
diff --git a/portato/gui/windows/mailinfo.py b/portato/gui/windows/mailinfo.py
index 93d2be4..8e476c6 100644
--- a/portato/gui/windows/mailinfo.py
+++ b/portato/gui/windows/mailinfo.py
@@ -12,13 +12,12 @@
from __future__ import absolute_import
-import gtk
import smtplib
import time
from .basic import AbstractDialog
from ..utils import GtkThread
-from ...helper import debug
+from ...helper import debug, info
from ...constants import VERSION
class MailInfoWindow (AbstractDialog):