/[xlog]/xlog/src/gui_pathselectiondialog.c
ViewVC logotype

Diff of /xlog/src/gui_pathselectiondialog.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by pa4tu, Mon May 17 16:43:29 2004 UTC revision 1.3 by pa4tu, Mon Sep 20 19:38:41 2004 UTC
# Line 33  Line 33 
33  extern GtkWidget *preferencesdialog;  extern GtkWidget *preferencesdialog;
34    
35  static void  static void
36    setfocus (void)
37    {
38            gtk_widget_set_sensitive (preferencesdialog, 1);
39    }
40    
41    static void
42  getpath (GtkWidget *widget, gpointer user_data)  getpath (GtkWidget *widget, gpointer user_data)
43  {  {
44          GtkWidget *pathselection = GTK_WIDGET (user_data);          GtkWidget *pathselection = GTK_WIDGET (user_data);
# Line 42  getpath (GtkWidget *widget, gpointer use Line 48  getpath (GtkWidget *widget, gpointer use
48          selpath =       gtk_file_selection_get_filename (GTK_FILE_SELECTION(pathselection));          selpath =       gtk_file_selection_get_filename (GTK_FILE_SELECTION(pathselection));
49          pathentry = lookup_widget (preferencesdialog, "pathentry");          pathentry = lookup_widget (preferencesdialog, "pathentry");
50          gtk_entry_set_text (GTK_ENTRY (pathentry), selpath);          gtk_entry_set_text (GTK_ENTRY (pathentry), selpath);
51          gtk_widget_set_sensitive (preferencesdialog, 1);          setfocus ();
52  }  }
53    
54  void  void
# Line 74  on_pathbutton_clicked (GtkButton * butto Line 80  on_pathbutton_clicked (GtkButton * butto
80    
81          g_signal_connect (GTK_FILE_SELECTION (pathselection)->ok_button, "clicked",          g_signal_connect (GTK_FILE_SELECTION (pathselection)->ok_button, "clicked",
82                  G_CALLBACK (getpath), pathselection);                  G_CALLBACK (getpath), pathselection);
83            g_signal_connect (GTK_FILE_SELECTION (pathselection)->cancel_button, "clicked",
84                    G_CALLBACK (setfocus), pathselection);
85          g_signal_connect_swapped (GTK_FILE_SELECTION (pathselection)->ok_button, "clicked",          g_signal_connect_swapped (GTK_FILE_SELECTION (pathselection)->ok_button, "clicked",
86                  G_CALLBACK (gtk_widget_destroy), pathselection);                  G_CALLBACK (gtk_widget_destroy), pathselection);
87          g_signal_connect_swapped (GTK_FILE_SELECTION (pathselection)->cancel_button, "clicked",          g_signal_connect_swapped (GTK_FILE_SELECTION (pathselection)->cancel_button, "clicked",

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26