anjuta r3518 - in trunk: . plugins/debug-manager



Author: sgranjoux
Date: Thu Jan 24 20:58:27 2008
New Revision: 3518
URL: http://svn.gnome.org/viewvc/anjuta?rev=3518&view=rev

Log:
	* plugins/debug-manager/anjuta-debug-manager.glade,
	plugins/debug-manager/start.c:
	Fix #511049: Change UI of add source directories dialog


Modified:
   trunk/ChangeLog
   trunk/plugins/debug-manager/anjuta-debug-manager.glade
   trunk/plugins/debug-manager/start.c

Modified: trunk/plugins/debug-manager/anjuta-debug-manager.glade
==============================================================================
--- trunk/plugins/debug-manager/anjuta-debug-manager.glade	(original)
+++ trunk/plugins/debug-manager/anjuta-debug-manager.glade	Thu Jan 24 20:58:27 2008
@@ -2,7 +2,6 @@
 <!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
 <!--*- mode: xml -*-->
 <glade-interface>
-  <requires lib="gnome"/>
   <widget class="GtkDialog" id="attach_process_dialog">
     <property name="title" translatable="yes">Attach to process</property>
     <property name="window_position">GTK_WIN_POS_CENTER</property>
@@ -418,14 +417,18 @@
             <property name="column_spacing">6</property>
             <property name="row_spacing">6</property>
             <child>
-              <widget class="GtkLabel" id="label6">
+              <widget class="GtkCheckButton" id="auto_update_check">
                 <property name="visible">True</property>
-                <property name="xalign">0</property>
-                <property name="label" translatable="yes">_Name:</property>
+                <property name="can_focus">True</property>
+                <property name="label" translatable="yes">_Automatic update</property>
                 <property name="use_underline">True</property>
-                <property name="mnemonic_widget">name_entry</property>
+                <property name="response_id">0</property>
+                <property name="draw_indicator">True</property>
               </widget>
               <packing>
+                <property name="right_attach">2</property>
+                <property name="top_attach">1</property>
+                <property name="bottom_attach">2</property>
                 <property name="x_options">GTK_FILL</property>
                 <property name="y_options"></property>
               </packing>
@@ -442,18 +445,14 @@
               </packing>
             </child>
             <child>
-              <widget class="GtkCheckButton" id="auto_update_check">
+              <widget class="GtkLabel" id="label6">
                 <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="label" translatable="yes">_Automatic update</property>
+                <property name="xalign">0</property>
+                <property name="label" translatable="yes">_Name:</property>
                 <property name="use_underline">True</property>
-                <property name="response_id">0</property>
-                <property name="draw_indicator">True</property>
+                <property name="mnemonic_widget">name_entry</property>
               </widget>
               <packing>
-                <property name="right_attach">2</property>
-                <property name="top_attach">1</property>
-                <property name="bottom_attach">2</property>
                 <property name="x_options">GTK_FILL</property>
                 <property name="y_options"></property>
               </packing>
@@ -518,61 +517,61 @@
             <property name="column_spacing">6</property>
             <property name="row_spacing">6</property>
             <child>
-              <widget class="GtkLabel" id="name_label">
+              <widget class="GtkEntry" id="name_entry">
                 <property name="visible">True</property>
-                <property name="xalign">0</property>
-                <property name="label" translatable="yes">_Name:</property>
-                <property name="use_underline">True</property>
-                <property name="mnemonic_widget">name_entry</property>
+                <property name="sensitive">False</property>
+                <property name="can_focus">True</property>
+                <property name="has_focus">True</property>
+                <property name="can_default">True</property>
+                <property name="has_default">True</property>
+                <property name="editable">False</property>
               </widget>
               <packing>
-                <property name="x_options">GTK_FILL</property>
+                <property name="left_attach">1</property>
+                <property name="right_attach">2</property>
                 <property name="y_options"></property>
               </packing>
             </child>
             <child>
-              <widget class="GtkLabel" id="value_label">
+              <widget class="GtkEntry" id="value_entry">
                 <property name="visible">True</property>
-                <property name="xalign">0</property>
-                <property name="label" translatable="yes">_Value:</property>
-                <property name="use_underline">True</property>
-                <property name="mnemonic_widget">value_entry</property>
+                <property name="can_focus">True</property>
+                <property name="has_focus">True</property>
+                <property name="activates_default">True</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="x_options">GTK_FILL</property>
                 <property name="y_options"></property>
               </packing>
             </child>
             <child>
-              <widget class="GtkEntry" id="value_entry">
+              <widget class="GtkLabel" id="value_label">
                 <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="has_focus">True</property>
-                <property name="activates_default">True</property>
+                <property name="xalign">0</property>
+                <property name="label" translatable="yes">_Value:</property>
+                <property name="use_underline">True</property>
+                <property name="mnemonic_widget">value_entry</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="x_options">GTK_FILL</property>
                 <property name="y_options"></property>
               </packing>
             </child>
             <child>
-              <widget class="GtkEntry" id="name_entry">
+              <widget class="GtkLabel" id="name_label">
                 <property name="visible">True</property>
-                <property name="sensitive">False</property>
-                <property name="can_focus">True</property>
-                <property name="has_focus">True</property>
-                <property name="can_default">True</property>
-                <property name="has_default">True</property>
-                <property name="editable">False</property>
+                <property name="xalign">0</property>
+                <property name="label" translatable="yes">_Name:</property>
+                <property name="use_underline">True</property>
+                <property name="mnemonic_widget">name_entry</property>
               </widget>
               <packing>
-                <property name="left_attach">1</property>
-                <property name="right_attach">2</property>
+                <property name="x_options">GTK_FILL</property>
                 <property name="y_options"></property>
               </packing>
             </child>
@@ -701,68 +700,68 @@
               <placeholder/>
             </child>
             <child>
-              <widget class="GtkLabel" id="name_label">
+              <widget class="GtkLabel" id="value_label">
                 <property name="visible">True</property>
                 <property name="xalign">0</property>
-                <property name="label" translatable="yes">_Name:</property>
+                <property name="label" translatable="yes">_Value:</property>
                 <property name="use_underline">True</property>
+                <property name="mnemonic_widget">scrolledwindow31</property>
               </widget>
               <packing>
+                <property name="top_attach">1</property>
+                <property name="bottom_attach">2</property>
                 <property name="x_options">GTK_FILL</property>
                 <property name="y_options"></property>
               </packing>
             </child>
             <child>
-              <widget class="GtkHBox" id="hbox1133">
+              <widget class="GtkScrolledWindow" id="scrolledwindow31">
                 <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
+                <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
+                <property name="shadow_type">GTK_SHADOW_IN</property>
                 <child>
-                  <widget class="GtkEntry" id="name_entry">
+                  <widget class="GtkTreeView" id="value_treeview">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
-                    <property name="has_focus">True</property>
-                    <property name="activates_default">True</property>
                   </widget>
                 </child>
               </widget>
               <packing>
                 <property name="left_attach">1</property>
                 <property name="right_attach">2</property>
-                <property name="x_options">GTK_FILL</property>
-                <property name="y_options">GTK_FILL</property>
+                <property name="top_attach">1</property>
+                <property name="bottom_attach">3</property>
               </packing>
             </child>
             <child>
-              <widget class="GtkScrolledWindow" id="scrolledwindow31">
+              <widget class="GtkHBox" id="hbox1133">
                 <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
-                <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
-                <property name="shadow_type">GTK_SHADOW_IN</property>
                 <child>
-                  <widget class="GtkTreeView" id="value_treeview">
+                  <widget class="GtkEntry" id="name_entry">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
+                    <property name="has_focus">True</property>
+                    <property name="activates_default">True</property>
                   </widget>
                 </child>
               </widget>
               <packing>
                 <property name="left_attach">1</property>
                 <property name="right_attach">2</property>
-                <property name="top_attach">1</property>
-                <property name="bottom_attach">3</property>
+                <property name="x_options">GTK_FILL</property>
+                <property name="y_options">GTK_FILL</property>
               </packing>
             </child>
             <child>
-              <widget class="GtkLabel" id="value_label">
+              <widget class="GtkLabel" id="name_label">
                 <property name="visible">True</property>
                 <property name="xalign">0</property>
-                <property name="label" translatable="yes">_Value:</property>
+                <property name="label" translatable="yes">_Name:</property>
                 <property name="use_underline">True</property>
-                <property name="mnemonic_widget">scrolledwindow31</property>
               </widget>
               <packing>
-                <property name="top_attach">1</property>
-                <property name="bottom_attach">2</property>
                 <property name="x_options">GTK_FILL</property>
                 <property name="y_options"></property>
               </packing>
@@ -853,76 +852,6 @@
             <property name="column_spacing">6</property>
             <property name="row_spacing">6</property>
             <child>
-              <widget class="GtkLabel" id="label6">
-                <property name="visible">True</property>
-                <property name="xalign">0</property>
-                <property name="label" translatable="yes">_Location:</property>
-                <property name="use_underline">True</property>
-              </widget>
-              <packing>
-                <property name="x_options">GTK_FILL</property>
-                <property name="y_options"></property>
-              </packing>
-            </child>
-            <child>
-              <widget class="GtkLabel" id="breakpoint_condition_label">
-                <property name="visible">True</property>
-                <property name="xalign">0</property>
-                <property name="label" translatable="yes">_Condition:</property>
-                <property name="use_underline">True</property>
-                <property name="mnemonic_widget">breakpoint_condition_entry</property>
-              </widget>
-              <packing>
-                <property name="top_attach">1</property>
-                <property name="bottom_attach">2</property>
-                <property name="x_options">GTK_FILL</property>
-                <property name="y_options"></property>
-              </packing>
-            </child>
-            <child>
-              <widget class="GtkLabel" id="breakpoint_pass_label">
-                <property name="visible">True</property>
-                <property name="xalign">0</property>
-                <property name="label" translatable="yes" comments="This is the number of time that the program executes the line where a breakpoint is located. It is used as a list header, so I have tried to find a quite short name.">_Pass count:</property>
-                <property name="use_underline">True</property>
-                <property name="mnemonic_widget">breakpoint_pass_entry</property>
-              </widget>
-              <packing>
-                <property name="top_attach">2</property>
-                <property name="bottom_attach">3</property>
-                <property name="x_options">GTK_FILL</property>
-                <property name="y_options"></property>
-              </packing>
-            </child>
-            <child>
-              <widget class="GtkEntry" id="breakpoint_condition_entry">
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="activates_default">True</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="y_options"></property>
-              </packing>
-            </child>
-            <child>
-              <widget class="GtkEntry" id="breakpoint_pass_entry">
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="activates_default">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="y_options"></property>
-              </packing>
-            </child>
-            <child>
               <widget class="GtkHBox" id="hbox1133">
                 <property name="visible">True</property>
                 <child>
@@ -952,97 +881,73 @@
                 <property name="y_options">GTK_FILL</property>
               </packing>
             </child>
-          </widget>
-          <packing>
-            <property name="position">2</property>
-          </packing>
-        </child>
-        <child internal-child="action_area">
-          <widget class="GtkHButtonBox" id="dialog-action_area3">
-            <property name="visible">True</property>
-            <property name="layout_style">GTK_BUTTONBOX_END</property>
             <child>
-              <widget class="GtkButton" id="cancelbutton1">
+              <widget class="GtkEntry" id="breakpoint_pass_entry">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
-                <property name="can_default">True</property>
-                <property name="label">gtk-cancel</property>
-                <property name="use_stock">True</property>
-                <property name="response_id">-6</property>
+                <property name="activates_default">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="y_options"></property>
+              </packing>
             </child>
             <child>
-              <widget class="GtkButton" id="okbutton1">
+              <widget class="GtkEntry" id="breakpoint_condition_entry">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
-                <property name="has_focus">True</property>
-                <property name="can_default">True</property>
-                <property name="has_default">True</property>
-                <property name="label">gtk-ok</property>
-                <property name="use_stock">True</property>
-                <property name="response_id">-5</property>
+                <property name="activates_default">True</property>
               </widget>
               <packing>
-                <property name="position">1</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"></property>
               </packing>
             </child>
-          </widget>
-          <packing>
-            <property name="expand">False</property>
-            <property name="pack_type">GTK_PACK_END</property>
-          </packing>
-        </child>
-      </widget>
-    </child>
-  </widget>
-  <widget class="GtkDialog" id="source_paths_dialog">
-    <property name="title" translatable="yes">Source Directories</property>
-    <property name="default_height">300</property>
-    <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
-    <child internal-child="vbox">
-      <widget class="GtkVBox" id="dialog-vbox2">
-        <property name="visible">True</property>
-        <child>
-          <widget class="GtkTable" id="table3">
-            <property name="visible">True</property>
-            <property name="border_width">5</property>
-            <property name="n_rows">2</property>
-            <property name="n_columns">1</property>
-            <property name="column_spacing">5</property>
-            <property name="row_spacing">5</property>
             <child>
-              <widget class="GtkScrolledWindow" id="scrolledwindow5">
+              <widget class="GtkLabel" id="breakpoint_pass_label">
                 <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
-                <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
-                <property name="shadow_type">GTK_SHADOW_IN</property>
-                <child>
-                  <widget class="GtkTreeView" id="src_clist">
-                    <property name="visible">True</property>
-                    <property name="can_focus">True</property>
-                    <property name="reorderable">True</property>
-                    <property name="rules_hint">True</property>
-                  </widget>
-                </child>
+                <property name="xalign">0</property>
+                <property name="label" translatable="yes" comments="This is the number of time that the program executes the line where a breakpoint is located. It is used as a list header, so I have tried to find a quite short name.">_Pass count:</property>
+                <property name="use_underline">True</property>
+                <property name="mnemonic_widget">breakpoint_pass_entry</property>
+              </widget>
+              <packing>
+                <property name="top_attach">2</property>
+                <property name="bottom_attach">3</property>
+                <property name="x_options">GTK_FILL</property>
+                <property name="y_options"></property>
+              </packing>
+            </child>
+            <child>
+              <widget class="GtkLabel" id="breakpoint_condition_label">
+                <property name="visible">True</property>
+                <property name="xalign">0</property>
+                <property name="label" translatable="yes">_Condition:</property>
+                <property name="use_underline">True</property>
+                <property name="mnemonic_widget">breakpoint_condition_entry</property>
               </widget>
               <packing>
                 <property name="top_attach">1</property>
                 <property name="bottom_attach">2</property>
+                <property name="x_options">GTK_FILL</property>
+                <property name="y_options"></property>
               </packing>
             </child>
             <child>
-              <widget class="GnomeFileEntry" id="fileentry3">
+              <widget class="GtkLabel" id="label6">
                 <property name="visible">True</property>
-                <property name="max_saved">10</property>
-                <child internal-child="entry">
-                  <widget class="GtkEntry" id="src_entry">
-                    <property name="visible">True</property>
-                    <property name="can_focus">True</property>
-                  </widget>
-                </child>
+                <property name="xalign">0</property>
+                <property name="label" translatable="yes">_Location:</property>
+                <property name="use_underline">True</property>
               </widget>
               <packing>
+                <property name="x_options">GTK_FILL</property>
                 <property name="y_options"></property>
               </packing>
             </child>
@@ -1052,89 +957,32 @@
           </packing>
         </child>
         <child internal-child="action_area">
-          <widget class="GtkHButtonBox" id="dialog-action_area2">
+          <widget class="GtkHButtonBox" id="dialog-action_area3">
             <property name="visible">True</property>
             <property name="layout_style">GTK_BUTTONBOX_END</property>
             <child>
-              <widget class="GtkButton" id="src_add_b">
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="can_default">True</property>
-                <property name="label">gtk-add</property>
-                <property name="use_stock">True</property>
-                <property name="response_id">-5</property>
-              </widget>
-            </child>
-            <child>
-              <widget class="GtkButton" id="src_update_b">
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="can_default">True</property>
-                <property name="response_id">-10</property>
-                <child>
-                  <widget class="GtkAlignment" id="alignment10">
-                    <property name="visible">True</property>
-                    <property name="xscale">0</property>
-                    <property name="yscale">0</property>
-                    <child>
-                      <widget class="GtkHBox" id="hbox28">
-                        <property name="visible">True</property>
-                        <property name="spacing">2</property>
-                        <child>
-                          <widget class="GtkImage" id="src_update_b_pix">
-                            <property name="visible">True</property>
-                            <property name="stock">gtk-apply</property>
-                          </widget>
-                          <packing>
-                            <property name="expand">False</property>
-                            <property name="fill">False</property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkLabel" id="label118">
-                            <property name="visible">True</property>
-                            <property name="label" translatable="yes">_Update</property>
-                            <property name="use_underline">True</property>
-                          </widget>
-                          <packing>
-                            <property name="expand">False</property>
-                            <property name="fill">False</property>
-                            <property name="position">1</property>
-                          </packing>
-                        </child>
-                      </widget>
-                    </child>
-                  </widget>
-                </child>
-              </widget>
-              <packing>
-                <property name="position">1</property>
-              </packing>
-            </child>
-            <child>
-              <widget class="GtkButton" id="src_remove_b">
+              <widget class="GtkButton" id="cancelbutton1">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="can_default">True</property>
-                <property name="label">gtk-remove</property>
+                <property name="label">gtk-cancel</property>
                 <property name="use_stock">True</property>
                 <property name="response_id">-6</property>
               </widget>
-              <packing>
-                <property name="position">2</property>
-              </packing>
             </child>
             <child>
-              <widget class="GtkButton" id="src_clear_b">
+              <widget class="GtkButton" id="okbutton1">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
+                <property name="has_focus">True</property>
                 <property name="can_default">True</property>
-                <property name="label">gtk-clear</property>
+                <property name="has_default">True</property>
+                <property name="label">gtk-ok</property>
                 <property name="use_stock">True</property>
-                <property name="response_id">-2</property>
+                <property name="response_id">-5</property>
               </widget>
               <packing>
-                <property name="position">3</property>
+                <property name="position">1</property>
               </packing>
             </child>
           </widget>
@@ -1163,45 +1011,53 @@
             <property name="column_spacing">5</property>
             <property name="row_spacing">5</property>
             <child>
-              <widget class="GtkLabel" id="label12353">
-                <property name="visible">True</property>
-                <property name="xalign">0</property>
-                <property name="label" translatable="yes">Debugger Target:</property>
+              <widget class="GtkCheckButton" id="stop_at_beginning_check">
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="label" translatable="yes">Stop at beginning</property>
+                <property name="use_underline">True</property>
+                <property name="response_id">0</property>
+                <property name="draw_indicator">True</property>
               </widget>
               <packing>
+                <property name="right_attach">3</property>
+                <property name="top_attach">3</property>
+                <property name="bottom_attach">4</property>
                 <property name="x_options">GTK_FILL</property>
                 <property name="y_options"></property>
               </packing>
             </child>
             <child>
-              <widget class="GtkButton" id="button39">
+              <widget class="GtkCheckButton" id="parameter_run_in_term_check">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
-                <property name="label">gtk-open</property>
-                <property name="use_stock">True</property>
+                <property name="label" translatable="yes">Run In Terminal</property>
+                <property name="use_underline">True</property>
                 <property name="response_id">0</property>
-                <signal name="clicked" handler="on_select_target_clicked"/>
+                <property name="draw_indicator">True</property>
               </widget>
               <packing>
-                <property name="left_attach">2</property>
                 <property name="right_attach">3</property>
+                <property name="top_attach">2</property>
+                <property name="bottom_attach">3</property>
                 <property name="x_options">GTK_FILL</property>
                 <property name="y_options"></property>
               </packing>
             </child>
             <child>
-              <widget class="GtkComboBoxEntry" id="target_combo">
+              <widget class="GtkComboBoxEntry" id="parameter_combo">
                 <property name="visible">True</property>
                 <child internal-child="entry">
-                  <widget class="GtkEntry" id="comboboxentry-entry1">
+                  <widget class="GtkEntry" id="comboboxentry-entry2">
                   </widget>
                 </child>
               </widget>
               <packing>
                 <property name="left_attach">1</property>
-                <property name="right_attach">2</property>
-                <property name="y_options">GTK_FILL</property>
-                <property name="y_padding">3</property>
+                <property name="right_attach">3</property>
+                <property name="top_attach">1</property>
+                <property name="bottom_attach">2</property>
+                <property name="x_options">GTK_FILL</property>
               </packing>
             </child>
             <child>
@@ -1218,51 +1074,43 @@
               </packing>
             </child>
             <child>
-              <widget class="GtkComboBoxEntry" id="parameter_combo">
+              <widget class="GtkComboBoxEntry" id="target_combo">
                 <property name="visible">True</property>
                 <child internal-child="entry">
-                  <widget class="GtkEntry" id="comboboxentry-entry2">
+                  <widget class="GtkEntry" id="comboboxentry-entry1">
                   </widget>
                 </child>
               </widget>
               <packing>
                 <property name="left_attach">1</property>
-                <property name="right_attach">3</property>
-                <property name="top_attach">1</property>
-                <property name="bottom_attach">2</property>
-                <property name="x_options">GTK_FILL</property>
+                <property name="right_attach">2</property>
+                <property name="y_options">GTK_FILL</property>
+                <property name="y_padding">3</property>
               </packing>
             </child>
             <child>
-              <widget class="GtkCheckButton" id="parameter_run_in_term_check">
+              <widget class="GtkButton" id="button39">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
-                <property name="label" translatable="yes">Run In Terminal</property>
-                <property name="use_underline">True</property>
+                <property name="label">gtk-open</property>
+                <property name="use_stock">True</property>
                 <property name="response_id">0</property>
-                <property name="draw_indicator">True</property>
+                <signal name="clicked" handler="on_select_target_clicked"/>
               </widget>
               <packing>
+                <property name="left_attach">2</property>
                 <property name="right_attach">3</property>
-                <property name="top_attach">2</property>
-                <property name="bottom_attach">3</property>
                 <property name="x_options">GTK_FILL</property>
                 <property name="y_options"></property>
               </packing>
             </child>
             <child>
-              <widget class="GtkCheckButton" id="stop_at_beginning_check">
+              <widget class="GtkLabel" id="label12353">
                 <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="label" translatable="yes">Stop at beginning</property>
-                <property name="use_underline">True</property>
-                <property name="response_id">0</property>
-                <property name="draw_indicator">True</property>
+                <property name="xalign">0</property>
+                <property name="label" translatable="yes">Debugger Target:</property>
               </widget>
               <packing>
-                <property name="right_attach">3</property>
-                <property name="top_attach">3</property>
-                <property name="bottom_attach">4</property>
                 <property name="x_options">GTK_FILL</property>
                 <property name="y_options"></property>
               </packing>
@@ -1717,36 +1565,36 @@
             <property name="column_spacing">11</property>
             <property name="row_spacing">10</property>
             <child>
-              <widget class="GtkLabel" id="label12347">
+              <widget class="GtkToggleButton" id="toggle.pass">
                 <property name="visible">True</property>
-                <property name="xalign">0</property>
-                <property name="label" translatable="yes">Stop:</property>
+                <property name="can_focus">True</property>
+                <property name="label" translatable="yes">Yes</property>
+                <property name="use_underline">True</property>
+                <property name="response_id">0</property>
               </widget>
               <packing>
+                <property name="left_attach">2</property>
+                <property name="right_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"></property>
               </packing>
             </child>
             <child>
-              <widget class="GtkLabel" id="label12348">
+              <widget class="GtkToggleButton" id="toggle.print">
                 <property name="visible">True</property>
-                <property name="xalign">0</property>
-                <property name="label" translatable="yes">Print:</property>
+                <property name="can_focus">True</property>
+                <property name="label" translatable="yes">Yes</property>
+                <property name="use_underline">True</property>
+                <property name="response_id">0</property>
               </widget>
               <packing>
                 <property name="left_attach">1</property>
                 <property name="right_attach">2</property>
-                <property name="y_options"></property>
-              </packing>
-            </child>
-            <child>
-              <widget class="GtkLabel" id="label12349">
-                <property name="visible">True</property>
-                <property name="xalign">0</property>
-                <property name="label" translatable="yes">Pass:</property>
-              </widget>
-              <packing>
-                <property name="left_attach">2</property>
-                <property name="right_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"></property>
               </packing>
             </child>
@@ -1766,36 +1614,36 @@
               </packing>
             </child>
             <child>
-              <widget class="GtkToggleButton" id="toggle.print">
+              <widget class="GtkLabel" id="label12349">
                 <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="label" translatable="yes">Yes</property>
-                <property name="use_underline">True</property>
-                <property name="response_id">0</property>
+                <property name="xalign">0</property>
+                <property name="label" translatable="yes">Pass:</property>
+              </widget>
+              <packing>
+                <property name="left_attach">2</property>
+                <property name="right_attach">3</property>
+                <property name="y_options"></property>
+              </packing>
+            </child>
+            <child>
+              <widget class="GtkLabel" id="label12348">
+                <property name="visible">True</property>
+                <property name="xalign">0</property>
+                <property name="label" translatable="yes">Print:</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="x_options">GTK_FILL</property>
                 <property name="y_options"></property>
               </packing>
             </child>
             <child>
-              <widget class="GtkToggleButton" id="toggle.pass">
+              <widget class="GtkLabel" id="label12347">
                 <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="label" translatable="yes">Yes</property>
-                <property name="use_underline">True</property>
-                <property name="response_id">0</property>
+                <property name="xalign">0</property>
+                <property name="label" translatable="yes">Stop:</property>
               </widget>
               <packing>
-                <property name="left_attach">2</property>
-                <property name="right_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"></property>
               </packing>
             </child>
@@ -1992,4 +1840,181 @@
       </widget>
     </child>
   </widget>
+  <widget class="GtkDialog" id="source_paths_dialog">
+    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+    <property name="border_width">5</property>
+    <property name="title" translatable="yes">Source Directories</property>
+    <property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
+    <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+    <property name="skip_pager_hint">True</property>
+    <child internal-child="vbox">
+      <widget class="GtkVBox" id="dialog-vbox16">
+        <property name="visible">True</property>
+        <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+        <property name="spacing">2</property>
+        <child>
+          <widget class="GtkTable" id="table5">
+            <property name="visible">True</property>
+            <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+            <property name="border_width">5</property>
+            <property name="n_rows">5</property>
+            <property name="n_columns">2</property>
+            <property name="column_spacing">5</property>
+            <property name="row_spacing">6</property>
+            <child>
+              <widget class="GtkScrolledWindow" id="scrolledwindow6">
+                <property name="width_request">480</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+                <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
+                <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
+                <property name="shadow_type">GTK_SHADOW_IN</property>
+                <child>
+                  <widget class="GtkTreeView" id="src_clist">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+                  </widget>
+                </child>
+              </widget>
+              <packing>
+                <property name="top_attach">1</property>
+                <property name="bottom_attach">5</property>
+              </packing>
+            </child>
+            <child>
+              <widget class="GtkFileChooserButton" id="src_entry">
+                <property name="visible">True</property>
+                <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+                <property name="border_width">1</property>
+                <property name="action">GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER</property>
+                <property name="title" translatable="yes">SÃlectionner un dossier</property>
+              </widget>
+              <packing>
+                <property name="y_options">GTK_SHRINK</property>
+              </packing>
+            </child>
+            <child>
+              <widget class="GtkButton" id="add_button">
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+                <property name="label" translatable="yes">gtk-add</property>
+                <property name="use_stock">True</property>
+                <property name="response_id">0</property>
+              </widget>
+              <packing>
+                <property name="left_attach">1</property>
+                <property name="right_attach">2</property>
+                <property name="x_options">GTK_SHRINK | GTK_FILL</property>
+                <property name="y_options">GTK_SHRINK</property>
+              </packing>
+            </child>
+            <child>
+              <widget class="GtkVBox" id="vbox4">
+                <property name="visible">True</property>
+                <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+                <property name="spacing">5</property>
+                <child>
+                  <widget class="GtkButton" id="remove_button">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+                    <property name="label" translatable="yes">gtk-remove</property>
+                    <property name="use_stock">True</property>
+                    <property name="response_id">0</property>
+                  </widget>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">False</property>
+                  </packing>
+                </child>
+                <child>
+                  <widget class="GtkButton" id="up_button">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+                    <property name="label" translatable="yes">gtk-go-up</property>
+                    <property name="use_stock">True</property>
+                    <property name="response_id">0</property>
+                  </widget>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">False</property>
+                    <property name="position">1</property>
+                  </packing>
+                </child>
+                <child>
+                  <widget class="GtkButton" id="down_button">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+                    <property name="label" translatable="yes">gtk-go-down</property>
+                    <property name="use_stock">True</property>
+                    <property name="response_id">0</property>
+                  </widget>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">False</property>
+                    <property name="position">2</property>
+                  </packing>
+                </child>
+              </widget>
+              <packing>
+                <property name="left_attach">1</property>
+                <property name="right_attach">2</property>
+                <property name="top_attach">1</property>
+                <property name="bottom_attach">5</property>
+                <property name="x_options">GTK_SHRINK | GTK_FILL</property>
+              </packing>
+            </child>
+          </widget>
+          <packing>
+            <property name="position">1</property>
+          </packing>
+        </child>
+        <child internal-child="action_area">
+          <widget class="GtkHButtonBox" id="dialog-action_area16">
+            <property name="visible">True</property>
+            <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+            <property name="layout_style">GTK_BUTTONBOX_END</property>
+            <child>
+              <widget class="GtkButton" id="button6">
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+                <property name="label" translatable="yes">gtk-redo</property>
+                <property name="use_stock">True</property>
+                <property name="response_id">-6</property>
+              </widget>
+            </child>
+            <child>
+              <widget class="GtkButton" id="button7">
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+                <property name="label" translatable="yes">gtk-close</property>
+                <property name="use_stock">True</property>
+                <property name="response_id">-7</property>
+              </widget>
+              <packing>
+                <property name="position">1</property>
+              </packing>
+            </child>
+          </widget>
+          <packing>
+            <property name="expand">False</property>
+            <property name="pack_type">GTK_PACK_END</property>
+          </packing>
+        </child>
+      </widget>
+    </child>
+  </widget>
 </glade-interface>

Modified: trunk/plugins/debug-manager/start.c
==============================================================================
--- trunk/plugins/debug-manager/start.c	(original)
+++ trunk/plugins/debug-manager/start.c	Thu Jan 24 20:58:27 2008
@@ -33,6 +33,8 @@
 
 #include "queue.h"
 
+/*#define DEBUG*/
+#include <libanjuta/anjuta-debug.h>
 #include <libanjuta/resources.h>
 #include <libanjuta/interfaces/ianjuta-project-manager.h>
 #include <libanjuta/anjuta-utils.h>
@@ -55,6 +57,7 @@
  *---------------------------------------------------------------------------*/
 
 typedef struct _AttachProcess AttachProcess;
+typedef struct _AddSourceDialog AddSourceDialog;
 typedef struct _LoadFileCallBack LoadFileCallBack;
 	
 enum
@@ -94,6 +97,13 @@
 	N_("Pid"), N_("User"), N_("Time"), N_("Command")
 };
 
+struct _AddSourceDialog
+{
+	GtkTreeView *tree;
+	GtkFileChooser *entry;
+	GtkListStore *model;
+};
+
 struct _LoadFileCallBack
 {
 	AnjutaPlugin *plugin;
@@ -127,6 +137,10 @@
 #define ADD_SOURCE_DIALOG "source_paths_dialog"
 #define SOURCE_ENTRY "src_entry"
 #define SOURCE_LIST "src_clist"
+#define ADD_BUTTON "add_button"
+#define REMOVE_BUTTON "remove_button"
+#define UP_BUTTON "up_button"
+#define DOWN_BUTTON "down_button"
 
 #define ANJUTA_RESPONSE_SELECT_TARGET 0
 
@@ -1061,6 +1075,9 @@
 	return response == GTK_RESPONSE_OK;
 }
 
+/* Add source dialog
+ *---------------------------------------------------------------------------*/
+
 static gboolean
 on_add_source_in_list (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer user_data)
 {
@@ -1090,20 +1107,82 @@
 }
 
 static void
+on_source_add_button (GtkButton *button, AddSourceDialog *dlg)
+{
+	GtkTreeIter iter;
+	const gchar *path;
+	
+	path = gtk_file_chooser_get_filename (dlg->entry);
+	if ((path != NULL) && (*path != '\0'))
+	{
+		gtk_list_store_append (dlg->model, &iter);
+		gtk_list_store_set (dlg->model, &iter, 0, path, -1);
+	}
+}
+
+static void
+on_source_remove_button (GtkButton *button, AddSourceDialog *dlg)
+{
+	GtkTreeIter iter;
+	GtkTreeSelection* sel;
+
+	sel = gtk_tree_view_get_selection (dlg->tree);
+	if (gtk_tree_selection_get_selected (sel, NULL, &iter))
+	{
+		gtk_list_store_remove (dlg->model, &iter);
+	}
+}
+
+static void
+on_source_up_button (GtkButton *button, AddSourceDialog *dlg)
+{
+	GtkTreeIter iter;
+	GtkTreeSelection* sel;
+
+	sel = gtk_tree_view_get_selection (dlg->tree);
+	if (gtk_tree_selection_get_selected (sel, NULL, &iter))
+	{
+		GtkTreePath *path;
+		
+		path = gtk_tree_model_get_path(GTK_TREE_MODEL (dlg->model), &iter);
+		if (gtk_tree_path_prev(path))
+		{
+			GtkTreeIter pos;
+			
+        	gtk_tree_model_get_iter(GTK_TREE_MODEL (dlg->model), &pos, path);
+			gtk_list_store_move_before (dlg->model, &iter, &pos);
+		}
+	}
+}
+
+static void
+on_source_down_button (GtkButton *button, AddSourceDialog *dlg)
+{
+	GtkTreeIter iter;
+	GtkTreeSelection* sel;
+	
+	sel = gtk_tree_view_get_selection (dlg->tree);
+	if (gtk_tree_selection_get_selected (sel, NULL, &iter))
+	{
+		GtkTreeIter pos = iter;
+				
+		if (gtk_tree_model_iter_next (GTK_TREE_MODEL (dlg->model), &pos))
+		{
+			gtk_list_store_move_after (dlg->model, &iter, &pos);
+		}
+	}
+}
+
+static void
 add_source_show (DmaStart *this)
 {
-	GtkWindow *parent;
+	AddSourceDialog dlg;
 	GladeXML *gxml;
-	GtkWidget *dlg;
-	GtkTreeView *tree;
-	GtkEntry *entry;
+	GtkWidget *widget;
+	GtkWindow *parent;
 	GtkCellRenderer *renderer;
 	GtkTreeViewColumn *column;
-	gint response;
-	GtkListStore* model;
-	GtkTreeIter iter;
-	GtkTreeSelection* sel;
-	const gchar *path;
+	GObject *button;
 	
 	parent = GTK_WINDOW (this->plugin->shell);
 	gxml = glade_xml_new (GLADE_FILE, ADD_SOURCE_DIALOG, NULL);
@@ -1113,63 +1192,61 @@
 		return;
 	}
 		
-	dlg = glade_xml_get_widget (gxml, ADD_SOURCE_DIALOG);
-	tree = GTK_TREE_VIEW (glade_xml_get_widget (gxml, SOURCE_LIST));
-	entry = GTK_ENTRY (glade_xml_get_widget (gxml, SOURCE_ENTRY));
+	widget = glade_xml_get_widget (gxml, ADD_SOURCE_DIALOG);
+	dlg.tree = GTK_TREE_VIEW (glade_xml_get_widget (gxml, SOURCE_LIST));
+	dlg.entry = GTK_FILE_CHOOSER (glade_xml_get_widget (gxml, SOURCE_ENTRY));
+	
+	/* Connect signals */	
+	button = G_OBJECT (glade_xml_get_widget (gxml, ADD_BUTTON));
+	g_signal_connect (button, "clicked", G_CALLBACK (on_source_add_button), &dlg);
+	button = G_OBJECT (glade_xml_get_widget (gxml, REMOVE_BUTTON));
+	g_signal_connect (button, "clicked", G_CALLBACK (on_source_remove_button), &dlg);
+	button = G_OBJECT (glade_xml_get_widget (gxml, UP_BUTTON));
+	g_signal_connect (button, "clicked", G_CALLBACK (on_source_up_button), &dlg);
+	button = G_OBJECT (glade_xml_get_widget (gxml, DOWN_BUTTON));
+	g_signal_connect (button, "clicked", G_CALLBACK (on_source_down_button), &dlg);
+	
 	g_object_unref (gxml);
 
 	renderer = gtk_cell_renderer_text_new ();
 	column = gtk_tree_view_column_new_with_attributes (_("Path"), renderer, "text", 0, NULL);
 	gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
-	gtk_tree_view_append_column (tree, column);
-	gtk_tree_view_set_expander_column(tree, column);
+	gtk_tree_view_append_column (dlg.tree, column);
+	gtk_tree_view_set_expander_column(dlg.tree, column);
 	
-	model = gtk_list_store_new (1, GTK_TYPE_STRING);
-	gtk_tree_view_set_model (tree, GTK_TREE_MODEL (model));
+	dlg.model = gtk_list_store_new (1, GTK_TYPE_STRING);
+	gtk_tree_view_set_model (dlg.tree, GTK_TREE_MODEL (dlg.model));
 	
-	gtk_window_set_transient_for (GTK_WINDOW (dlg), parent);
+	gtk_window_set_transient_for (GTK_WINDOW (widget), parent);
 
 	/* Initialize source path list */
-	g_list_foreach (this->source_dirs, on_add_source_in_model, model);
+	g_list_foreach (this->source_dirs, on_add_source_in_model, dlg.model);
 	
 	/* Run dialog */
 	for (;;)
 	{
-		response = gtk_dialog_run (GTK_DIALOG (dlg));
+		gint response = gtk_dialog_run (GTK_DIALOG (widget));
 		
 		switch (response)
 		{
-		case GTK_RESPONSE_OK:
-			path = gtk_entry_get_text (entry);
-			if ((path != NULL) && (*path != '\0'))
-			{
-				gtk_list_store_append (model, &iter);
-				gtk_list_store_set (model, &iter, 0, path, -1);
-			}
-			continue;
-		case GTK_RESPONSE_CANCEL:
-			sel = gtk_tree_view_get_selection (tree);
-			if (gtk_tree_selection_get_selected (sel, NULL, &iter))
-        	{
-				gtk_list_store_remove (model, &iter);
-			}
-			continue;
-		case GTK_RESPONSE_REJECT:
-			gtk_list_store_clear (model);
-			continue;
-		case GTK_RESPONSE_APPLY:
+		case GTK_RESPONSE_DELETE_EVENT:
+		case GTK_RESPONSE_CLOSE:
 			g_list_foreach (this->source_dirs, (GFunc)g_free, NULL);
 			g_list_free (this->source_dirs);
 			this->source_dirs = NULL;
-			gtk_tree_model_foreach (GTK_TREE_MODEL (model), on_add_source_in_list, &this->source_dirs);
+			gtk_tree_model_foreach (GTK_TREE_MODEL (dlg.model), on_add_source_in_list, &this->source_dirs);
 			this->source_dirs = g_list_reverse (this->source_dirs);
 			break;
+		case GTK_RESPONSE_CANCEL:
+			gtk_list_store_clear (dlg.model);
+			g_list_foreach (this->source_dirs, on_add_source_in_model, dlg.model);
+			continue;
 		default:
 			break;
 		}
 		break;
 	}
-	gtk_widget_destroy (dlg);
+	gtk_widget_destroy (widget);
 }
 
 /* Public functions



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