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

Diff of /xlog/src/callbacks_mainwindow_list.c

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

revision 1.1 by pa4tu, Thu Apr 8 21:51:55 2004 UTC revision 1.2 by pa4tu, Mon Sep 20 19:38:41 2004 UTC
# Line 116  on_log_select_row (GtkTreeSelection *sel Line 116  on_log_select_row (GtkTreeSelection *sel
116                  else                  else
117                          bandcopy = g_strdup(finddot (entry));                          bandcopy = g_strdup(finddot (entry));
118                  for (;;)                  for (;;)
119                    {
120                            if (!bandsplit[bandindex])
121                                    break;
122                            if (g_ascii_strcasecmp (bandcopy, bandsplit[bandindex]) == 0)
123                          {                          {
124                                  if (!bandsplit[bandindex])                                  gtk_combo_box_set_active (GTK_COMBO_BOX (bandoptionmenu),
125                                          break;                                          bandindex);
126                                  if (g_ascii_strcasecmp (bandcopy, bandsplit[bandindex]) == 0)                                  break;
                                         {  
                                                 gtk_option_menu_set_history (GTK_OPTION_MENU (bandoptionmenu), bandindex);  
                                                 break;  
                                         }  
                                 bandindex++;  
127                          }                          }
128                            bandindex++;
129                    }
130                  g_free (bandcopy);                  g_free (bandcopy);
131    
132                  /* update modeoptionmenu and entry */                  /* update modeoptionmenu and entry */
# Line 134  on_log_select_row (GtkTreeSelection *sel Line 135  on_log_select_row (GtkTreeSelection *sel
135    
136                  modesplit = g_strsplit (preferences.modes, ",", 0);                  modesplit = g_strsplit (preferences.modes, ",", 0);
137                  for (;;)                  for (;;)
138                          {                  {
139                                  if (!modesplit[modeindex])                          if (!modesplit[modeindex])
140                                    break;
141                            if (g_ascii_strcasecmp (entry, modesplit[modeindex]) == 0)
142                                    {
143                                            gtk_combo_box_set_active (GTK_COMBO_BOX (modeoptionmenu),
144                                                    modeindex);
145                                          break;                                          break;
146                                  if (g_ascii_strcasecmp (entry, modesplit[modeindex]) == 0)                                  }
147                                          {                          modeindex++;
148                                                  gtk_option_menu_set_history (GTK_OPTION_MENU (modeoptionmenu), modeindex);                  }
                                                 break;  
                                         }  
                                 modeindex++;  
                         }  
149    
150                  gtk_tree_model_get (model, &iter, POWER, &entry, -1);                  gtk_tree_model_get (model, &iter, POWER, &entry, -1);
151                  gtk_entry_set_text (GTK_ENTRY (powerentry), entry);                  gtk_entry_set_text (GTK_ENTRY (powerentry), entry);

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

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