[maemo-developers] text of progress bars and comboboxes
From: Xan Lopez xan.lopez at gmail.comDate: Thu Mar 8 14:27:20 EET 2007
- Previous message: text of progress bars and comboboxes
- Next message: Impact on 770/N800 Software on DST change in the US?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, On 3/8/07, Denes Matetelki <cs0rbagomba at yahoo.com> wrote: > Dear Developers, > > I cannot solve this 2 things in my GTK/Hildon GUI: > > The text in the progress bars appears alligned to the upper-left corner. > (Not in the centre like in pure GTK, or in gazpacho+hildon) > For example with this code: > GtkWidget *progressbar1; > progressbar1 = gtk_progress_bar_new (); > gtk_widget_show (progressbar1); > gtk_box_pack_start (GTK_BOX (vbox1), progressbar1, TRUE, FALSE, 1); > gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (progressbar1), 0.5); > gtk_progress_bar_set_text(GTK_PROGRESS_BAR > (progressbar1),"nyamm"); > The text-xalign property for GtkProgressBar is 0.0 by default in maemo gtk+. To get the text centered again you need to do something like: g_object_set (progress_bar, "text-xalign", 0.5, NULL); > > The frame around the combobox is only at the left, rigth, upper border, but > there is no line at the buttom border. > With this code: > > GtkWidget *combobox1; > combobox1 = GTK_WIDGET(gtk_combo_box_new_text()); > gtk_widget_show (combobox1); > gtk_box_pack_start (GTK_BOX (vbox1), combobox1, TRUE, FALSE, 0); > gtk_combo_box_append_text (GTK_COMBO_BOX (combobox1), "SYNC_TO_LOCAL"); > gtk_combo_box_append_text (GTK_COMBO_BOX (combobox1), "SYNC_TO_REMOTE"); > gtk_combo_box_set_active( GTK_COMBO_BOX (combobox1), 0); > Hum, I'm not sure what is your problem here. Which version of the software are you running? Theme? Could you provide a screenshot? Thanks, xan > There are no errors outside scratchbox (full GTK), but in scratchbox, or in > the tablet (hildon) this 2 problems appears. > > Any idea? > > Best Regards: > Denes > > > ________________________________ > TV dinner still cooling? > Check out "Tonight's Picks" on Yahoo! TV. > > > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://maemo.org/mailman/listinfo/maemo-developers > >
- Previous message: text of progress bars and comboboxes
- Next message: Impact on 770/N800 Software on DST change in the US?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]